projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a712600
)
iio: dht11: avoid multiple assignments to make checkpatch.pl --strict happy
author
Harald Geyer
<harald@ccbib.org>
Tue, 7 Jul 2015 13:39:30 +0000
(13:39 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 20 Jul 2015 17:41:19 +0000
(18:41 +0100)
We just do the assignments in two steps.
Signed-off-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/humidity/dht11.c
patch
|
blob
|
history
diff --git
a/drivers/iio/humidity/dht11.c
b/drivers/iio/humidity/dht11.c
index bb5ad57ed2a29feea0b06003c23c7a3e875a35b7..91976e06f1c6b62ade459f67ed2c9b1f75788d36 100644
(file)
--- a/
drivers/iio/humidity/dht11.c
+++ b/
drivers/iio/humidity/dht11.c
@@
-263,9
+263,10
@@
static int dht11_probe(struct platform_device *pdev)
dht11 = iio_priv(iio);
dht11->dev = dev;
-
dht11->gpio =
ret = of_get_gpio(node, 0);
+ ret = of_get_gpio(node, 0);
if (ret < 0)
return ret;
+ dht11->gpio = ret;
ret = devm_gpio_request_one(dev, dht11->gpio, GPIOF_IN, pdev->name);
if (ret)
return ret;