]> git.karo-electronics.de Git - linux-beck.git/commit
power: bq24257: Simplify bq24257_power_supply_init()
authorAndreas Dannenberg <dannenberg@ti.com>
Mon, 28 Sep 2015 22:33:52 +0000 (17:33 -0500)
committerSebastian Reichel <sre@kernel.org>
Tue, 29 Sep 2015 14:48:28 +0000 (16:48 +0200)
commit3b84b8efef054ba59e7679d1d430afb437aa4640
tree4923b9d78abd0871a273579da87908ee285b5493
parentdfc602524b9f4ecc6de9a3050667412176db7c55
power: bq24257: Simplify bq24257_power_supply_init()

Eliminate a few lines of code by using the PTR_ERR_OR_ZERO() macro.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/bq24257_charger.c