hwmon: (pmbus) Replace EINVAL return codes with more appropriate errors
authorGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 1 Sep 2011 15:34:31 +0000 (08:34 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 24 Oct 2011 18:09:39 +0000 (11:09 -0700)
commit179144a0d4128e7588b3d613a14807402f5e7c37
tree996869256838ba759495d1a1331ffcddba94b1bd
parentced29d422557feb4230ea6b0067f1e24c5bd83f7
hwmon: (pmbus) Replace EINVAL return codes with more appropriate errors

EINVAL was over-used in the code. Replace it with more appropriate errors.

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