Skip to content

Commit

Permalink
hwmon: (lm70) fix checkpatch issues
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frans Meulenbroeks authored and Guenter Roeck committed Mar 19, 2012
1 parent 1dc3708 commit 56c24af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/lm70.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 56c24af

Please sign in to comment.