]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (pmbus) Always call _pmbus_read_byte in core driver
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 30 Jul 2011 05:19:39 +0000 (22:19 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 18 Sep 2011 17:10:10 +0000 (10:10 -0700)
commit6c8eba3d44975402d75e0e08118818a7e7478187
tree1f14c327897ed6537a22e57fdf053e3afbac1ec3
parent0b2db54c821b0a4bcfada97938d716a3f6b83f1c
hwmon: (pmbus) Always call _pmbus_read_byte in core driver

Always call _pmbus_read_byte() instead of pmbus_read_byte() in PMBus core
driver. With this change, device specific read functions can be implemented for
all registers.

Since the device specific read_byte function is now always called, we need to be
more careful with page validations. Only fail if the passed page number is larger
than 0, since -1 means "current page".

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/pmbus/adm1275.c
drivers/hwmon/pmbus/lm25066.c
drivers/hwmon/pmbus/max34440.c
drivers/hwmon/pmbus/max8688.c
drivers/hwmon/pmbus/pmbus_core.c
drivers/hwmon/pmbus/ucd9000.c