power: supply: core: constify psy_tcd_ops.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 13 Jun 2017 05:09:43 +0000 (10:39 +0530)
committerSebastian Reichel <sre@kernel.org>
Wed, 14 Jun 2017 20:10:43 +0000 (22:10 +0200)
File size before:
text data bss dec   hex filename
4240  200  80 4520 11a8 drivers/power/supply/power_supply_core.o

File size After adding 'const':
text data bss dec   hex filename
4296  136  80 4512 11a0 drivers/power/supply/power_supply_core.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/power_supply_core.c

index a4303ed661449a5aabdf769118b936e2be1863ce..540d3e0aa0115e27005cc79f46b585d9d5c9fd21 100644 (file)
@@ -748,7 +748,7 @@ static int ps_set_cur_charge_cntl_limit(struct thermal_cooling_device *tcd,
        return ret;
 }
 
-static struct thermal_cooling_device_ops psy_tcd_ops = {
+static const struct thermal_cooling_device_ops psy_tcd_ops = {
        .get_max_state = ps_get_max_charge_cntl_limit,
        .get_cur_state = ps_get_cur_chrage_cntl_limit,
        .set_cur_state = ps_set_cur_charge_cntl_limit,