summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-09-11 18:27:29 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-10-03 22:17:50 +0200
commitf87d092fe4d45ec36e88778c5836b1c3db80fc8c (patch)
treea8b56f4147fda50a1fe653c7de266b0420358bfb /drivers/power
parentpower: supply: charger-manager: drop unused charger assignment (diff)
downloadlinux-f87d092fe4d45ec36e88778c5836b1c3db80fc8c.tar.xz
linux-f87d092fe4d45ec36e88778c5836b1c3db80fc8c.zip
power: supply: pm2301: drop duplicated i2c_device_id
The driver defines two of 'struct i2c_device_id' but uses only one: drivers/power/supply/pm2301_charger.c:107:35: warning: 'pm2xxx_ident' defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/pm2301_charger.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/power/supply/pm2301_charger.c b/drivers/power/supply/pm2301_charger.c
index 787867805944..2df6a2459d1f 100644
--- a/drivers/power/supply/pm2301_charger.c
+++ b/drivers/power/supply/pm2301_charger.c
@@ -104,11 +104,6 @@ static int pm2xxx_charger_current_map[] = {
3000,
};
-static const struct i2c_device_id pm2xxx_ident[] = {
- { "pm2301", 0 },
- { }
-};
-
static void set_lpn_pin(struct pm2xxx_charger *pm2)
{
if (!pm2->ac.charger_connected && gpio_is_valid(pm2->lpn_pin)) {