* [PATCH] power: supply: constify psy_tcd_ops.
@ 2017-06-13 5:09 Arvind Yadav
2017-06-14 20:12 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: Arvind Yadav @ 2017-06-13 5:09 UTC (permalink / raw)
To: sre; +Cc: linux-pm, linux-kernel
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>
---
drivers/power/supply/power_supply_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
index 7ec7c7c..2cc64b8 100644
--- a/drivers/power/supply/power_supply_core.c
+++ b/drivers/power/supply/power_supply_core.c
@@ -669,7 +669,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,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] power: supply: constify psy_tcd_ops.
2017-06-13 5:09 [PATCH] power: supply: constify psy_tcd_ops Arvind Yadav
@ 2017-06-14 20:12 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2017-06-14 20:12 UTC (permalink / raw)
To: Arvind Yadav; +Cc: linux-pm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]
Hi,
On Tue, Jun 13, 2017 at 10:39:43AM +0530, Arvind Yadav wrote:
> 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>
Thanks, queued.
-- Sebastian
> ---
> drivers/power/supply/power_supply_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
> index 7ec7c7c..2cc64b8 100644
> --- a/drivers/power/supply/power_supply_core.c
> +++ b/drivers/power/supply/power_supply_core.c
> @@ -669,7 +669,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,
> --
> 1.9.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-14 20:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13 5:09 [PATCH] power: supply: constify psy_tcd_ops Arvind Yadav
2017-06-14 20:12 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).