Skip to content

Commit 56c24af

Browse files
Frans MeulenbroeksGuenter Roeck
Frans Meulenbroeks
authored and
Guenter Roeck
committed
hwmon: (lm70) fix checkpatch issues
fixed: ERROR: spaces required around that '=' (ctx:VxV) raspberrypi#60: FILE: lm70.c:60: + s16 raw=0; ^ ERROR: do not use assignment in if condition raspberrypi#168: FILE: lm70.c:168: + if ((status = device_create_file(&spi->dev, &dev_attr_temp1_input)) Signed-off-by: Frans Meulenbroeks <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent 1dc3708 commit 56c24af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/lm70.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static ssize_t lm70_sense_temp(struct device *dev,
5757
struct spi_device *spi = to_spi_device(dev);
5858
int status, val = 0;
5959
u8 rxbuf[2];
60-
s16 raw=0;
60+
s16 raw = 0;
6161
struct lm70 *p_lm70 = spi_get_drvdata(spi);
6262

6363
if (mutex_lock_interruptible(&p_lm70->lock))

0 commit comments

Comments
 (0)