diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2016-06-06 10:48:48 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-07-17 19:41:54 +0200 |
commit | 9afd6866bf88b6a652136c70197e48fe837dbc01 (patch) | |
tree | 99770ba5b6b1ddc4fcbcc01355b26c87f5cbc7eb /drivers/misc/hmc6352.c | |
parent | eeprom: at24: hide the read/write loop behind a macro (diff) | |
download | linux-9afd6866bf88b6a652136c70197e48fe837dbc01.tar.xz linux-9afd6866bf88b6a652136c70197e48fe837dbc01.zip |
eeprom: at24: split at24_eeprom_read() into specialized functions
Split at24_eeprom_read() into two smaller functions - one for the
i2c operations and one for the smbus extensions. Assign them in
at24_probe() depending on the bus capabilities.
Also: in order to avoid duplications move the comments related to
offset calculations above the at24_translate_offset() routine.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions