diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-13 11:56:41 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-07-06 08:38:53 +0200 |
commit | c034a6fda0179a85cd571c386ed6748188b0a79c (patch) | |
tree | 1291d465cd52d498964b3bc3b5c0baeee275fec0 | |
parent | pwm: bfin: Remove unneeded error message (diff) | |
download | linux-c034a6fda0179a85cd571c386ed6748188b0a79c.tar.xz linux-c034a6fda0179a85cd571c386ed6748188b0a79c.zip |
pwm: hibvt: Constify hibvt_pwm_ops
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>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/pwm-hibvt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-hibvt.c b/drivers/pwm/pwm-hibvt.c index d0e8f8542626..8dadc58d6cdf 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, |