summaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-14 11:45:26 +0200
committerGuenter Roeck <linux@roeck-us.net>2013-08-27 17:28:01 +0200
commita4bf06d58f219230ee38e338fdda225973d44aa1 (patch)
treec4433d0a08a5dfa93dcb4bfdcf666f7ea5f7d5f3 /Documentation/hwmon
parenthwmon: (ads1015) Add support for ADS1115 (diff)
downloadlinux-a4bf06d58f219230ee38e338fdda225973d44aa1.tar.xz
linux-a4bf06d58f219230ee38e338fdda225973d44aa1.zip
hwmon: (adt7462) ADT7462_REG_VOLT_MAX() should return 0
The callers never check for negative but they sometimes check for zero returns: int reg = ADT7462_REG_VOLT_MAX(data, i); data->volt_max[i] = (reg ? i2c_smbus_read_byte_data(client, reg) : 0); Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon')
0 files changed, 0 insertions, 0 deletions