power: ds2782_battery: constify ds278x_battery_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 13 Nov 2015 18:41:34 +0000 (19:41 +0100)
committerSebastian Reichel <sre@kernel.org>
Sat, 5 Dec 2015 01:06:49 +0000 (02:06 +0100)
commit79fbdb66cf6ab4e26e7bcb8399ac02cd81fc5d6d
tree8a07db775119e2ba527f304e6593b58981587704
parentb7e16ec6e3d2ea0b62cf93a0e849db55f403a871
power: ds2782_battery: constify ds278x_battery_ops structure

The ds278x_battery_ops structure is never modified, so declare it as const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/ds2782_battery.c