power: supply: pm2301: drop duplicated i2c_device_id
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 11 Sep 2020 16:27:29 +0000 (18:27 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 3 Oct 2020 20:17:50 +0000 (22:17 +0200)
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>
drivers/power/supply/pm2301_charger.c

index 7878678..2df6a24 100644 (file)
@@ -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)) {