Commit 162bb59e authored by Giel van Schijndel's avatar Giel van Schijndel Committed by Jean Delvare

hwmon: (f71882fg) Fixed braces coding style issues

Fixed several coding style issues.
Signed-off-by: default avatarGiel van Schijndel <me@mortis.eu>
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 10f2ed31
...@@ -866,11 +866,11 @@ static int superio_inw(int base, int reg) ...@@ -866,11 +866,11 @@ static int superio_inw(int base, int reg)
static inline void superio_enter(int base) static inline void superio_enter(int base)
{ {
/* according to the datasheet the key must be send twice! */ /* according to the datasheet the key must be send twice! */
outb( SIO_UNLOCK_KEY, base); outb(SIO_UNLOCK_KEY, base);
outb( SIO_UNLOCK_KEY, base); outb(SIO_UNLOCK_KEY, base);
} }
static inline void superio_select( int base, int ld) static inline void superio_select(int base, int ld)
{ {
outb(SIO_REG_LDSEL, base); outb(SIO_REG_LDSEL, base);
outb(ld, base + 1); outb(ld, base + 1);
...@@ -945,7 +945,7 @@ static struct f71882fg_data *f71882fg_update_device(struct device *dev) ...@@ -945,7 +945,7 @@ static struct f71882fg_data *f71882fg_update_device(struct device *dev)
mutex_lock(&data->update_lock); mutex_lock(&data->update_lock);
/* Update once every 60 seconds */ /* Update once every 60 seconds */
if ( time_after(jiffies, data->last_limits + 60 * HZ ) || if (time_after(jiffies, data->last_limits + 60 * HZ) ||
!data->valid) { !data->valid) {
if (data->type == f71882fg || data->type == f71889fg) { if (data->type == f71882fg || data->type == f71889fg) {
data->in1_max = data->in1_max =
...@@ -2151,8 +2151,7 @@ static int __init f71882fg_find(int sioaddr, unsigned short *address, ...@@ -2151,8 +2151,7 @@ static int __init f71882fg_find(int sioaddr, unsigned short *address,
} }
*address = superio_inw(sioaddr, SIO_REG_ADDR); *address = superio_inw(sioaddr, SIO_REG_ADDR);
if (*address == 0) if (*address == 0) {
{
printk(KERN_WARNING DRVNAME ": Base address not set\n"); printk(KERN_WARNING DRVNAME ": Base address not set\n");
goto exit; goto exit;
} }
......
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