summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2016-06-06 08:48:49 (GMT)
committerWolfram Sang <wsa@the-dreams.de>2016-07-17 17:41:54 (GMT)
commitcd0c861542fc81bd3087ff1e8af0f87e2a8794c3 (patch)
treeb49dbcc6d21a90652710d223a3d71591c8d9779d /include
parent9afd6866bf88b6a652136c70197e48fe837dbc01 (diff)
downloadlinux-cd0c861542fc81bd3087ff1e8af0f87e2a8794c3.tar.xz
eeprom: at24: split at24_eeprom_write() into specialized functions
Split at24_eeprom_write() into three smaller functions - one for the i2c operations and two for the smbus extensions (separate routines for block and byte transfers). Assign them in at24_probe() depending on the bus capabilities. Also: in order to avoid duplications move code adjusting the count argument into a separate function and use it for i2c and smbus block writes (no need for a roll-over for byte writes as we're always writing one byte). Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions