From: Kevin Hilman Date: Thu, 2 Apr 2009 23:56:57 +0000 (-0700) Subject: memory_accessor: implement the new memory_accessor interface for I2C EEPROM X-Git-Tag: v2.6.30-rc1~390 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7274ec8bd71e99018642f474528ea7de4bb3ae25;p=pandora-kernel.git memory_accessor: implement the new memory_accessor interface for I2C EEPROM 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 Cc: David Brownell Cc: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed