linux/drivers/hwmon/pmbus
Guenter Roeck d7ee11157f hwmon: (pmbus_core) Fix compiler warning
Some configurations produce the following compiler warning:

drivers/hwmon/pmbus/pmbus_core.c: In function 'pmbus_show_boolean':
drivers/hwmon/pmbus/pmbus_core.c:752: warning: 'val' may be used uninitialized in this function

While this is a false positive, it can easily be fixed by overloading the return
value from pmbus_get_boolean with both val and error return code (val is a
boolean and thus never negative).

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
2012-04-09 12:17:38 -07:00
..
adm1275.c hwmon: (adm1275) Add support for ADM1075 2012-03-18 18:27:52 -07:00
Kconfig hwmon: (zl6100) Add support for ZL9101M and ZL9117M 2012-03-18 18:27:53 -07:00
lm25066.c
ltc2978.c
Makefile
max8688.c
max16064.c
max34440.c hwmon: (max34440) Add support for MAX34446 2012-03-18 18:27:52 -07:00
pmbus.c
pmbus.h hwmon: (pmbus) Add more virtual registers 2012-03-18 18:27:51 -07:00
pmbus_core.c hwmon: (pmbus_core) Fix compiler warning 2012-04-09 12:17:38 -07:00
ucd9000.c
ucd9200.c
zl6100.c hwmon: (zl6100) Add support for ZL9101M and ZL9117M 2012-03-18 18:27:53 -07:00