Skip to content
Commit 0668281d authored by Tang Bin's avatar Tang Bin Committed by Sebastian Reichel
Browse files

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: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent d0c27c92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment