summaryrefslogtreecommitdiff
path: root/include/linux/i2c/at24.h
AgeCommit message (Collapse)AuthorFilesLines
2012-02-25misc: at24: describe platform_data with kernel_docWolfram Sang1-6/+29
There have been questions about its fields lately, so describe them properly. Reported-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2009-04-03memory_accessor: implement the new memory_accessor interface for I2C EEPROMKevin Hilman1-0/+4
In the case of at24, the platform code registers a 'setup' callback with the at24_platform_data. When the at24 driver detects an EEPROM, it fills out the read and write functions of the memory_accessor and calls the setup callback passing the memory_accessor struct. The platform code can then use the read/write functions in the memory_accessor struct for reading and writing the EEPROM. Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com> Cc: David Brownell <dbrownell@users.sourceforge.net> 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>
2008-07-15i2c: New-style EEPROM driver using device IDsWolfram Sang1-0/+28
Add a new-style driver for most I2C EEPROMs, giving sysfs read/write access to their data. Tested with various chips and clock rates. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Jean Delvare <khali@linux-fr.org>