Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b36fb171 authored by Tokunori Ikegami's avatar Tokunori Ikegami Committed by Guenter Roeck
Browse files

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: default avatarTokunori 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: default avatarGuenter Roeck <linux@roeck-us.net>
parent 5cf943ed
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);