summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorTokunori Ikegami <ikegami@allied-telesis.co.jp>2018-08-08 04:32:17 +0300
committerGuenter Roeck <linux@roeck-us.net>2018-08-10 19:13:01 +0300
commitb36fb17159adad16a724f0d298a5b50269839ead (patch)
treeea5339eaa6f024b294e1d5c46a1e2bd0023abb26 /drivers/hwmon
parent5cf943ede4af95313665ea81f224533d2aa272bb (diff)
downloadlinux-b36fb17159adad16a724f0d298a5b50269839ead.tar.xz
hwmon: (adt7475) Change valid parameter to bool type
Currently the valid variable is of type char, but it is used as boolean. So let's change it to bool. Signed-off-by: Tokunori Ikegami <ikegami@allied-telesis.co.jp> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Chris Packham <chris.packham@alliedtelesis.co.nz> [groeck: Update description] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/adt7475.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c
index d6fe4ddd9927..d90b31eb3472 100644
--- a/drivers/hwmon/adt7475.c
+++ b/drivers/hwmon/adt7475.c
@@ -194,7 +194,7 @@ struct adt7475_data {
struct mutex lock;
unsigned long measure_updated;
- char valid;
+ bool valid;
u8 config4;
u8 config5;
@@ -1781,6 +1781,7 @@ static struct adt7475_data *adt7475_update_device(struct device *dev)
!data->valid) {
adt7475_update_measure(dev);
data->measure_updated = jiffies;
+ data->valid = true;
}
mutex_unlock(&data->lock);