projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'iio-fixes-for-4.0c' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23...
[cascardo/linux.git]
/
drivers
/
hwmon
/
ads7828.c
diff --git
a/drivers/hwmon/ads7828.c
b/drivers/hwmon/ads7828.c
index
bce4e9f
..
6c99ee7
100644
(file)
--- a/
drivers/hwmon/ads7828.c
+++ b/
drivers/hwmon/ads7828.c
@@
-147,6
+147,9
@@
static int ads7828_probe(struct i2c_client *client,
&ads2830_regmap_config);
}
+ if (IS_ERR(data->regmap))
+ return PTR_ERR(data->regmap);
+
data->cmd_byte = ext_vref ? ADS7828_CMD_PD1 : ADS7828_CMD_PD3;
if (!diff_input)
data->cmd_byte |= ADS7828_CMD_SD_SE;