Skip to content

Commit

Permalink
hwmon: (adt7475) Change valid parameter to bool type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tokunori Ikegami authored and Guenter Roeck committed Aug 10, 2018
1 parent 5cf943e commit b36fb17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/hwmon/adt7475.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct adt7475_data {
struct mutex lock;

unsigned long measure_updated;
char valid;
bool valid;

u8 config4;
u8 config5;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b36fb17

Please sign in to comment.