aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorGiel van Schijndel <me@mortis.eu>2010-05-27 13:58:40 -0400
committerJean Delvare <khali@linux-fr.org>2010-05-27 13:58:40 -0400
commit162bb59e498a15e27717bcc0831b97d393f2290d (patch)
tree4609d277a08eee27eb7701ce97b5b26673f895ea /drivers/hwmon
parent10f2ed31aae11040dfd64cee10c47db79b4b4647 (diff)
hwmon: (f71882fg) Fixed braces coding style issues
Fixed several coding style issues. Signed-off-by: Giel van Schijndel <me@mortis.eu> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/f71882fg.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/hwmon/f71882fg.c b/drivers/hwmon/f71882fg.c
index a95fa4256caa..21bc66159b5a 100644
--- a/drivers/hwmon/f71882fg.c
+++ b/drivers/hwmon/f71882fg.c
@@ -866,11 +866,11 @@ static int superio_inw(int base, int reg)
866static inline void superio_enter(int base) 866static inline void superio_enter(int base)
867{ 867{
868 /* according to the datasheet the key must be send twice! */ 868 /* according to the datasheet the key must be send twice! */
869 outb( SIO_UNLOCK_KEY, base); 869 outb(SIO_UNLOCK_KEY, base);
870 outb( SIO_UNLOCK_KEY, base); 870 outb(SIO_UNLOCK_KEY, base);
871} 871}
872 872
873static inline void superio_select( int base, int ld) 873static inline void superio_select(int base, int ld)
874{ 874{
875 outb(SIO_REG_LDSEL, base); 875 outb(SIO_REG_LDSEL, base);
876 outb(ld, base + 1); 876 outb(ld, base + 1);
@@ -945,7 +945,7 @@ static struct f71882fg_data *f71882fg_update_device(struct device *dev)
945 mutex_lock(&data->update_lock); 945 mutex_lock(&data->update_lock);
946 946
947 /* Update once every 60 seconds */ 947 /* Update once every 60 seconds */
948 if ( time_after(jiffies, data->last_limits + 60 * HZ ) || 948 if (time_after(jiffies, data->last_limits + 60 * HZ) ||
949 !data->valid) { 949 !data->valid) {
950 if (data->type == f71882fg || data->type == f71889fg) { 950 if (data->type == f71882fg || data->type == f71889fg) {
951 data->in1_max = 951 data->in1_max =
@@ -2151,8 +2151,7 @@ static int __init f71882fg_find(int sioaddr, unsigned short *address,
2151 } 2151 }
2152 2152
2153 *address = superio_inw(sioaddr, SIO_REG_ADDR); 2153 *address = superio_inw(sioaddr, SIO_REG_ADDR);
2154 if (*address == 0) 2154 if (*address == 0) {
2155 {
2156 printk(KERN_WARNING DRVNAME ": Base address not set\n"); 2155 printk(KERN_WARNING DRVNAME ": Base address not set\n");
2157 goto exit; 2156 goto exit;
2158 } 2157 }