]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: sc27xx: Introduce local variable 'struct device *dev'
authorFuqian Huang <huangfq.daxian@gmail.com>
Mon, 8 Jul 2019 12:32:51 +0000 (20:32 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 2 Sep 2019 19:08:43 +0000 (21:08 +0200)
commit08614b407d8dffd9136c79ce6fd579be42173cc3
tree2e5004d858b04efc27d7b63ab6f26778ead173ed
parent59857e9eadceb4002b2bd601d526091e4524d610
power: supply: sc27xx: Introduce local variable 'struct device *dev'

Introduce local variable 'struct device *dev' and use it instead of
dereferencing it repeatly.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sc27xx_fuel_gauge.c