* [PATCH] pwm: pwm-hibvt: constify hibvt_pwm_ops
@ 2017-06-13 9:56 Arvind Yadav
2017-07-06 6:41 ` Thierry Reding
0 siblings, 1 reply; 2+ messages in thread
From: Arvind Yadav @ 2017-06-13 9:56 UTC (permalink / raw)
To: thierry.reding; +Cc: linux-pwm, linux-kernel
File size before:
text data bss dec hex filename
1510 296 0 1806 70e drivers/pwm/pwm-hibvt.o
File size After adding 'const':
text data bss dec hex filename
1606 192 0 1798 706 drivers/pwm/pwm-hibvt.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
drivers/pwm/pwm-hibvt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-hibvt.c b/drivers/pwm/pwm-hibvt.c
index d0e8f85..8dadc58 100644
--- a/drivers/pwm/pwm-hibvt.c
+++ b/drivers/pwm/pwm-hibvt.c
@@ -165,7 +165,7 @@ static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
return 0;
}
-static struct pwm_ops hibvt_pwm_ops = {
+static const struct pwm_ops hibvt_pwm_ops = {
.get_state = hibvt_pwm_get_state,
.apply = hibvt_pwm_apply,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pwm: pwm-hibvt: constify hibvt_pwm_ops
2017-06-13 9:56 [PATCH] pwm: pwm-hibvt: constify hibvt_pwm_ops Arvind Yadav
@ 2017-07-06 6:41 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2017-07-06 6:41 UTC (permalink / raw)
To: Arvind Yadav; +Cc: linux-pwm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 543 bytes --]
On Tue, Jun 13, 2017 at 03:26:41PM +0530, Arvind Yadav wrote:
> File size before:
> text data bss dec hex filename
> 1510 296 0 1806 70e drivers/pwm/pwm-hibvt.o
> File size After adding 'const':
> text data bss dec hex filename
> 1606 192 0 1798 706 drivers/pwm/pwm-hibvt.o
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---
> drivers/pwm/pwm-hibvt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thierry
[-- 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-07-06 6:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13 9:56 [PATCH] pwm: pwm-hibvt: constify hibvt_pwm_ops Arvind Yadav
2017-07-06 6:41 ` Thierry Reding
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).