diff options
| author | 2021-09-28 10:06:23 +0800 | |
|---|---|---|
| committer | 2021-10-02 17:58:38 +0200 | |
| commit | 0668281d329db2c21ba6494a7bfcb8331dd0f5fa (patch) | |
| tree | b356704733bcafce3c86bbcd2d41d057391386bc /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | power: supply: max17042_battery: fix typo in MAX17042_IAvg_empty (diff) | |
| download | linux-dev-0668281d329db2c21ba6494a7bfcb8331dd0f5fa.tar.xz linux-dev-0668281d329db2c21ba6494a7bfcb8331dd0f5fa.zip | |
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>
Diffstat (limited to 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
