]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] SPI eeprom driver
authorDavid Brownell <david-b@pacbell.net>
Mon, 12 Feb 2007 08:52:48 +0000 (00:52 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:31 +0000 (09:48 -0800)
commit95d5a317fd8ac35823a2628f4bbdd0dafb412826
tree36e614fae95d8a2c888190d162e67ec95d144304
parent5ccd3332b3cbfb8f64eb822aa50c44ea2b71cc25
[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]