Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

power_supply: tosa_battery: Get rid of irq_to_gpio usage

This commit fixes the following error:

linux/drivers/power/tosa_battery.c:153:2: error: implicit declaration of
function 'irq_to_gpio' [-Werror=implicit-function-declaration]

Since 9d08d5d77a355510c2f5657c86b0a4b25acfe72c, irq_to_gpio() is no longer
available but still in use by collie_battery.c. As it's just for a debug
message, just get rid of this call.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>

authored by

Andrea Adami and committed by
Anton Vorontsov
0e81ef58 1ba64114

+1 -1
+1 -1
drivers/power/tosa_battery.c
··· 150 150 151 151 static irqreturn_t tosa_bat_gpio_isr(int irq, void *data) 152 152 { 153 - pr_info("tosa_bat_gpio irq: %d\n", gpio_get_value(irq_to_gpio(irq))); 153 + pr_info("tosa_bat_gpio irq\n"); 154 154 schedule_work(&bat_work); 155 155 return IRQ_HANDLED; 156 156 }