Tag: 79fbdb66cf6ab4e26e7bcb8399ac02cd81fc5d6d

power: ds2782_battery: constify ds278x_battery_ops structure

Author: Julia Lawall <Julia.Lawall@lip6.fr> The ds278x_battery_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Sebastian Reichel — drivers/power/ds2782_battery.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   diff –git a/drivers/power/ds2782_battery.c b/drivers/power/ds2782_battery.c index ed4d756..a1b7e05 100644 — a/drivers/power/ds2782_battery.c +++ b/drivers/power/ds2782_battery.c @@ -59,7 +59,7 @@ …

Continue reading