[PATCH] SPI eeprom driver
commitb587b13a4f670ebae79ae6259cf44328455e4e69
authorDavid Brownell <david-b@pacbell.net>
Mon, 12 Feb 2007 08:52:48 +0000 (12 00:52 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:31 +0000 (12 09:48 -0800)
tree36e614fae95d8a2c888190d162e67ec95d144304
parent3925a5ce44330767f7f0de5c58c6a797009f0f75
[PATCH] SPI eeprom driver

This is adds a simple SPI EEPROM driver, providing access to the EEPROM
through sysfs much like the I2C "eeprom" driver ...  except this driver
supports write access, and multiple EEPROM sizes.

From: "Tuppa, Walter" <walter.tuppa@siemens.com>

Since I have EEPROMs on SPI with different address sizing, I made some
changes to your at25.c to support them.  Works perfectly.  (Also includes a
small bugfix for the "what size address" test.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Walter Tuppa <walter.tuppa@siemens.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/at25.c [new file with mode: 0644]
include/linux/spi/eeprom.h [new file with mode: 0644]