memory_accessor: implement the new memory_accessor interfaces for SPI EEPROMs
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 2 Apr 2009 23:56:58 +0000 (16:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:50 +0000 (19:04 -0700)
commit14dd1ff0f9e75dd4ae2f1ff8e48becb76d14f4ab
treea9e208f0c35c8e24ed0edb8a1bc5ca9a4dc9b585
parent7274ec8bd71e99018642f474528ea7de4bb3ae25
memory_accessor: implement the new memory_accessor interfaces for SPI EEPROMs

- Define new setup() hook to export the accessor
 - Implement accessor methods

Moves some error checking out of the sysfs interface code into the layer
below it, which is now shared by both sysfs and memory access code.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/eeprom/at25.c
include/linux/spi/eeprom.h