hwmon: cleanup non-bool "valid" data fields
[linux-2.6-microblaze.git] / drivers / hwmon / gl520sm.c
index 4ae1295..096ba97 100644 (file)
@@ -64,7 +64,7 @@ struct gl520_data {
        struct i2c_client *client;
        const struct attribute_group *groups[3];
        struct mutex update_lock;
-       char valid;             /* zero until the following fields are valid */
+       bool valid;             /* false until the following fields are valid */
        unsigned long last_updated;     /* in jiffies */
 
        u8 vid;
@@ -174,7 +174,7 @@ static struct gl520_data *gl520_update_device(struct device *dev)
                }
 
                data->last_updated = jiffies;
-               data->valid = 1;
+               data->valid = true;
        }
 
        mutex_unlock(&data->update_lock);