diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-13 05:56:41 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-07-06 02:38:53 -0400 |
commit | c034a6fda0179a85cd571c386ed6748188b0a79c (patch) | |
tree | 1291d465cd52d498964b3bc3b5c0baeee275fec0 /drivers/pwm/pwm-hibvt.c | |
parent | 0e1921dcd825004551bd4dd2df99697641434a52 (diff) |
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>
Diffstat (limited to 'drivers/pwm/pwm-hibvt.c')
-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, | |||
165 | return 0; | 165 | return 0; |
166 | } | 166 | } |
167 | 167 | ||
168 | static struct pwm_ops hibvt_pwm_ops = { | 168 | static const struct pwm_ops hibvt_pwm_ops = { |
169 | .get_state = hibvt_pwm_get_state, | 169 | .get_state = hibvt_pwm_get_state, |
170 | .apply = hibvt_pwm_apply, | 170 | .apply = hibvt_pwm_apply, |
171 | 171 | ||