diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-03-29 16:54:50 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-10-13 19:16:25 -0400 |
commit | a0393713530c49697e49ce0456c039228ab7facb (patch) | |
tree | 63afc99e115313bdb37a8f9ac73b554fb71473b9 /drivers/hwmon | |
parent | 61e6cfa80de5760bbe406f4e815b7739205754d2 (diff) |
hwmon: Remove unnecessary semicolons
Semicolons after closing } of conditional blocks are not needed
and can be removed.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/adm1026.c | 6 | ||||
-rw-r--r-- | drivers/hwmon/asc7621.c | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/hwmon/adm1026.c b/drivers/hwmon/adm1026.c index 3a6d9ef1c16c..b3498acb9ab4 100644 --- a/drivers/hwmon/adm1026.c +++ b/drivers/hwmon/adm1026.c | |||
@@ -616,7 +616,7 @@ static struct adm1026_data *adm1026_update_device(struct device *dev) | |||
616 | data->gpio = gpio; | 616 | data->gpio = gpio; |
617 | 617 | ||
618 | data->last_reading = jiffies; | 618 | data->last_reading = jiffies; |
619 | }; /* last_reading */ | 619 | } /* last_reading */ |
620 | 620 | ||
621 | if (!data->valid || | 621 | if (!data->valid || |
622 | time_after(jiffies, data->last_config + ADM1026_CONFIG_INTERVAL)) { | 622 | time_after(jiffies, data->last_config + ADM1026_CONFIG_INTERVAL)) { |
@@ -700,7 +700,7 @@ static struct adm1026_data *adm1026_update_device(struct device *dev) | |||
700 | } | 700 | } |
701 | 701 | ||
702 | data->last_config = jiffies; | 702 | data->last_config = jiffies; |
703 | }; /* last_config */ | 703 | } /* last_config */ |
704 | 704 | ||
705 | data->valid = 1; | 705 | data->valid = 1; |
706 | mutex_unlock(&data->update_lock); | 706 | mutex_unlock(&data->update_lock); |
@@ -1791,7 +1791,7 @@ static int adm1026_detect(struct i2c_client *client, | |||
1791 | if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) { | 1791 | if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) { |
1792 | /* We need to be able to do byte I/O */ | 1792 | /* We need to be able to do byte I/O */ |
1793 | return -ENODEV; | 1793 | return -ENODEV; |
1794 | }; | 1794 | } |
1795 | 1795 | ||
1796 | /* Now, we do the remaining detection. */ | 1796 | /* Now, we do the remaining detection. */ |
1797 | 1797 | ||
diff --git a/drivers/hwmon/asc7621.c b/drivers/hwmon/asc7621.c index 3ad9d849add2..8d9f2a0e8efe 100644 --- a/drivers/hwmon/asc7621.c +++ b/drivers/hwmon/asc7621.c | |||
@@ -138,7 +138,7 @@ static inline u8 read_byte(struct i2c_client *client, u8 reg) | |||
138 | dev_err(&client->dev, | 138 | dev_err(&client->dev, |
139 | "Unable to read from register 0x%02x.\n", reg); | 139 | "Unable to read from register 0x%02x.\n", reg); |
140 | return 0; | 140 | return 0; |
141 | }; | 141 | } |
142 | return res & 0xff; | 142 | return res & 0xff; |
143 | } | 143 | } |
144 | 144 | ||
@@ -149,7 +149,7 @@ static inline int write_byte(struct i2c_client *client, u8 reg, u8 data) | |||
149 | dev_err(&client->dev, | 149 | dev_err(&client->dev, |
150 | "Unable to write value 0x%02x to register 0x%02x.\n", | 150 | "Unable to write value 0x%02x to register 0x%02x.\n", |
151 | data, reg); | 151 | data, reg); |
152 | }; | 152 | } |
153 | return res; | 153 | return res; |
154 | } | 154 | } |
155 | 155 | ||
@@ -1030,7 +1030,7 @@ static struct asc7621_data *asc7621_update_device(struct device *dev) | |||
1030 | } | 1030 | } |
1031 | } | 1031 | } |
1032 | data->last_high_reading = jiffies; | 1032 | data->last_high_reading = jiffies; |
1033 | }; /* last_reading */ | 1033 | } /* last_reading */ |
1034 | 1034 | ||
1035 | /* Read all the low priority registers. */ | 1035 | /* Read all the low priority registers. */ |
1036 | 1036 | ||
@@ -1044,7 +1044,7 @@ static struct asc7621_data *asc7621_update_device(struct device *dev) | |||
1044 | } | 1044 | } |
1045 | } | 1045 | } |
1046 | data->last_low_reading = jiffies; | 1046 | data->last_low_reading = jiffies; |
1047 | }; /* last_reading */ | 1047 | } /* last_reading */ |
1048 | 1048 | ||
1049 | data->valid = 1; | 1049 | data->valid = 1; |
1050 | 1050 | ||
@@ -1084,11 +1084,11 @@ static void asc7621_init_client(struct i2c_client *client) | |||
1084 | dev_err(&client->dev, | 1084 | dev_err(&client->dev, |
1085 | "Client (%d,0x%02x) config is locked.\n", | 1085 | "Client (%d,0x%02x) config is locked.\n", |
1086 | i2c_adapter_id(client->adapter), client->addr); | 1086 | i2c_adapter_id(client->adapter), client->addr); |
1087 | }; | 1087 | } |
1088 | if (!(value & 0x04)) { | 1088 | if (!(value & 0x04)) { |
1089 | dev_err(&client->dev, "Client (%d,0x%02x) is not ready.\n", | 1089 | dev_err(&client->dev, "Client (%d,0x%02x) is not ready.\n", |
1090 | i2c_adapter_id(client->adapter), client->addr); | 1090 | i2c_adapter_id(client->adapter), client->addr); |
1091 | }; | 1091 | } |
1092 | 1092 | ||
1093 | /* | 1093 | /* |
1094 | * Start monitoring | 1094 | * Start monitoring |