]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
eeprom: at24: add regmap-based read function
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 28 Nov 2017 20:51:50 +0000 (21:51 +0100)
committerBartosz Golaszewski <brgl@bgdev.pl>
Mon, 1 Jan 2018 18:40:46 +0000 (19:40 +0100)
commit4bb5c13cc23c647c1fb6168d08de1fbda8f2357e
treedca5dee3979ee8fc6da8a5eb6dd71b749389c78f
parentd4297d6795779b0713203787eada5b8d9f0ce065
eeprom: at24: add regmap-based read function

Add regmap-based read function and instead of using three different
read functions (standard, mac, serial) use just one and factor out the
read offset adjustment for mac and serial to at24_adjust_read_offset.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/misc/eeprom/at24.c