• Kevin Hilman's avatar
    I2C: at24: add kernel interface for reading/writing EEPROM · 890854d0
    Kevin Hilman authored
    This patch adds an interface by which other kernel code can read/write
    detected EEPROM.
    
    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 at24_iface and calls the setup
    callback.  The platform code can then use the read/write functions in
    the at24_iface struct for reading and writing the EEPROM.
    
    Original idea, review and updates by David Brownell <david-b@pacbell.net>
    Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
    890854d0
at24.c 16.5 KB