]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: cpcap-battery: use device_get_match_data() to simplify code
authorTang Bin <tangbin@cmss.chinamobile.com>
Tue, 28 Sep 2021 02:06:23 +0000 (10:06 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 2 Oct 2021 15:58:38 +0000 (17:58 +0200)
commit4ec665b9beb54583f4d6c3e6118c61c16c085fb7
treeb356704733bcafce3c86bbcd2d41d057391386bc
parentc822576a6440428bd5f0b929f7fa16c5635ead86
power: supply: cpcap-battery: use device_get_match_data() to simplify code

In the function cpcap_battery_probe(), the driver only needs the
data object, so use device_get_match_data() instead, to make the
code cleaner.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cpcap-battery.c