Message ID | 20200911162729.3022-7-krzk@kernel.org |
---|---|
State | Accepted |
Commit | f87d092fe4d45ec36e88778c5836b1c3db80fc8c |
Headers | show |
Series | [1/7] power: supply: bq24257: skip 'struct acpi_device_id' when !CONFIG_ACPI | expand |
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)) {
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> --- drivers/power/supply/pm2301_charger.c | 5 ----- 1 file changed, 5 deletions(-)