Commit a0393713 authored by Guenter Roeck's avatar Guenter Roeck

hwmon: Remove unnecessary semicolons

Semicolons after closing } of conditional blocks are not needed
and can be removed.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarJean Delvare <khali@linux-fr.org>
parent 61e6cfa8
...@@ -616,7 +616,7 @@ static struct adm1026_data *adm1026_update_device(struct device *dev) ...@@ -616,7 +616,7 @@ static struct adm1026_data *adm1026_update_device(struct device *dev)
data->gpio = gpio; data->gpio = gpio;
data->last_reading = jiffies; data->last_reading = jiffies;
}; /* last_reading */ } /* last_reading */
if (!data->valid || if (!data->valid ||
time_after(jiffies, data->last_config + ADM1026_CONFIG_INTERVAL)) { time_after(jiffies, data->last_config + ADM1026_CONFIG_INTERVAL)) {
...@@ -700,7 +700,7 @@ static struct adm1026_data *adm1026_update_device(struct device *dev) ...@@ -700,7 +700,7 @@ static struct adm1026_data *adm1026_update_device(struct device *dev)
} }
data->last_config = jiffies; data->last_config = jiffies;
}; /* last_config */ } /* last_config */
data->valid = 1; data->valid = 1;
mutex_unlock(&data->update_lock); mutex_unlock(&data->update_lock);
...@@ -1791,7 +1791,7 @@ static int adm1026_detect(struct i2c_client *client, ...@@ -1791,7 +1791,7 @@ static int adm1026_detect(struct i2c_client *client,
if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) { if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) {
/* We need to be able to do byte I/O */ /* We need to be able to do byte I/O */
return -ENODEV; return -ENODEV;
}; }
/* Now, we do the remaining detection. */ /* Now, we do the remaining detection. */
......
...@@ -138,7 +138,7 @@ static inline u8 read_byte(struct i2c_client *client, u8 reg) ...@@ -138,7 +138,7 @@ static inline u8 read_byte(struct i2c_client *client, u8 reg)
dev_err(&client->dev, dev_err(&client->dev,
"Unable to read from register 0x%02x.\n", reg); "Unable to read from register 0x%02x.\n", reg);
return 0; return 0;
}; }
return res & 0xff; return res & 0xff;
} }
...@@ -149,7 +149,7 @@ static inline int write_byte(struct i2c_client *client, u8 reg, u8 data) ...@@ -149,7 +149,7 @@ static inline int write_byte(struct i2c_client *client, u8 reg, u8 data)
dev_err(&client->dev, dev_err(&client->dev,
"Unable to write value 0x%02x to register 0x%02x.\n", "Unable to write value 0x%02x to register 0x%02x.\n",
data, reg); data, reg);
}; }
return res; return res;
} }
...@@ -1030,7 +1030,7 @@ static struct asc7621_data *asc7621_update_device(struct device *dev) ...@@ -1030,7 +1030,7 @@ static struct asc7621_data *asc7621_update_device(struct device *dev)
} }
} }
data->last_high_reading = jiffies; data->last_high_reading = jiffies;
}; /* last_reading */ } /* last_reading */
/* Read all the low priority registers. */ /* Read all the low priority registers. */
...@@ -1044,7 +1044,7 @@ static struct asc7621_data *asc7621_update_device(struct device *dev) ...@@ -1044,7 +1044,7 @@ static struct asc7621_data *asc7621_update_device(struct device *dev)
} }
} }
data->last_low_reading = jiffies; data->last_low_reading = jiffies;
}; /* last_reading */ } /* last_reading */
data->valid = 1; data->valid = 1;
...@@ -1084,11 +1084,11 @@ static void asc7621_init_client(struct i2c_client *client) ...@@ -1084,11 +1084,11 @@ static void asc7621_init_client(struct i2c_client *client)
dev_err(&client->dev, dev_err(&client->dev,
"Client (%d,0x%02x) config is locked.\n", "Client (%d,0x%02x) config is locked.\n",
i2c_adapter_id(client->adapter), client->addr); i2c_adapter_id(client->adapter), client->addr);
}; }
if (!(value & 0x04)) { if (!(value & 0x04)) {
dev_err(&client->dev, "Client (%d,0x%02x) is not ready.\n", dev_err(&client->dev, "Client (%d,0x%02x) is not ready.\n",
i2c_adapter_id(client->adapter), client->addr); i2c_adapter_id(client->adapter), client->addr);
}; }
/* /*
* Start monitoring * Start monitoring
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment