hwmon: (lm70) fix checkpatch issues
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sun, 8 Jan 2012 18:34:11 +0000 (19:34 +0100)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 19 Mar 2012 01:26:39 +0000 (18:26 -0700)
fixed:
ERROR: spaces required around that '=' (ctx:VxV)
#60: FILE: lm70.c:60:
+ s16 raw=0;
         ^

ERROR: do not use assignment in if condition
#168: FILE: lm70.c:168:
+ if ((status = device_create_file(&spi->dev, &dev_attr_temp1_input))

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/lm70.c

index c274ea25d899f5766d06d41283c5ec26876adddd..0994cb086754cb897abb21dc4bba801403378381 100644 (file)
@@ -57,7 +57,7 @@ static ssize_t lm70_sense_temp(struct device *dev,
        struct spi_device *spi = to_spi_device(dev);
        int status, val = 0;
        u8 rxbuf[2];
-       s16 raw=0;
+       s16 raw = 0;
        struct lm70 *p_lm70 = spi_get_drvdata(spi);
 
        if (mutex_lock_interruptible(&p_lm70->lock))