summaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
authorGuenter Roeck <guenter.roeck@ericsson.com>2011-07-30 07:19:39 +0200
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-10-24 20:09:40 +0200
commitda8e48ab483e1f54c1099bed91bfd2c302bc7ddf (patch)
tree10a2c76781ef0b1c51515d4feb71c7fa5ae6e29f /block/genhd.c
parenthwmon: (pmbus) Replace EINVAL return codes with more appropriate errors (diff)
downloadlinux-da8e48ab483e1f54c1099bed91bfd2c302bc7ddf.tar.xz
linux-da8e48ab483e1f54c1099bed91bfd2c302bc7ddf.zip
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>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions