summaryrefslogtreecommitdiffstats
path: root/sound/oss/pas2.h
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-05-21 18:40:57 +0200
committerJean Delvare <khali@linux-fr.org>2010-05-21 18:40:57 +0200
commit7aeb96642f70139a194d685b132605836f6f8dbb (patch)
tree16ff60fcd074e8b2efb052d883175b48f56b80bb /sound/oss/pas2.h
parentc5aa69285c573e42042530be86b7af6f5fe9e240 (diff)
downloadblackbird-op-linux-7aeb96642f70139a194d685b132605836f6f8dbb.tar.gz
blackbird-op-linux-7aeb96642f70139a194d685b132605836f6f8dbb.zip
at24: Fall back to byte or word reads if needed
Increase the portability of the at24 driver by letting it read from EEPROM chips connected to cheap SMBus controllers that support neither raw I2C messages nor even I2C block reads. All SMBus controllers should support either word reads or byte reads, so read support becomes universal, much like with the legacy "eeprom" driver. Obviously, this only works with EEPROM chips up to AT24C16, that use 8-bit offset addressing. 16-bit offset addressing is almost impossible to support on SMBus controllers. I did not add universal support for writes, as I had no immediate need for this, but it could be added later if needed (with the same performance issue as byte and word reads have, of course.) Signed-off-by: Jean Delvare <khali@linux-fr.org> Reviewed-by: Wolfram Sang <w.sang@pengutronix.de> Cc: Konstantin Lazarev <klazarev@sbcglobal.net>
Diffstat (limited to 'sound/oss/pas2.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud