summaryrefslogtreecommitdiff
path: root/drivers/sn
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2016-06-06 08:48:51 (GMT)
committerWolfram Sang <wsa@the-dreams.de>2016-07-17 17:57:30 (GMT)
commit818d0220d857cc92cb37600758c5b47c3df3782b (patch)
treedea3c7a564d3ee9c181d1f867414965a7d29025c /drivers/sn
parenta7284a82e826b88eb6264747cee57888d4076c48 (diff)
downloadlinux-818d0220d857cc92cb37600758c5b47c3df3782b.tar.xz
eeprom: at24: support reading the serial number for 24csxx
The chips from the at24cs family have two memory areas - a regular read-write block and a read-only area containing the serial number. The latter is visible on a different slave address (the address of the rw memory block + 0x08). In order to access both blocks the user needs to instantiate a regular at24c device for the rw block address and a corresponding at24cs device on the serial number block address. Add a function that allows to access the serial number and assign it to at24->read_func if the chip allows serial number read operations and the driver was passed the relevant flag for this device. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/sn')
0 files changed, 0 insertions, 0 deletions