diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2016-06-06 11:48:49 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-07-17 20:41:54 +0300 |
commit | cd0c861542fc81bd3087ff1e8af0f87e2a8794c3 (patch) | |
tree | b49dbcc6d21a90652710d223a3d71591c8d9779d /drivers/md/dm-table.c | |
parent | 9afd6866bf88b6a652136c70197e48fe837dbc01 (diff) | |
download | linux-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 'drivers/md/dm-table.c')
0 files changed, 0 insertions, 0 deletions