Currently the valid paramter is char type but the type is not required. So change the parameter to boot type correctly.
Signed-off-by: Tokunori Ikegami <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Chris Packham <[email protected]> Cc: [email protected] --- Changes since v2: - Change to rebase on the v3 patch 1. Changes since v1: - Change to rebase on the v2 patch 1. drivers/hwmon/adt7475.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.16.1 -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
