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>
struct mutex lock;
unsigned long measure_updated;
- char valid;
+ bool valid;
u8 config4;
u8 config5;
!data->valid) {
adt7475_update_measure(dev);
data->measure_updated = jiffies;
+ data->valid = true;
}
mutex_unlock(&data->lock);