eeprom: at24: split at24_eeprom_read() into specialized functions
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 6 Jun 2016 08:48:48 +0000 (10:48 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 17 Jul 2016 17:41:54 +0000 (19:41 +0200)
commit9afd6866bf88b6a652136c70197e48fe837dbc01
tree99770ba5b6b1ddc4fcbcc01355b26c87f5cbc7eb
parent9344a81efb885cc0d5b29dd214df66e332aa0129
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>
drivers/misc/eeprom/at24.c