pwm: hibvt: Constify hibvt_pwm_ops
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 13 Jun 2017 09:56:41 +0000 (15:26 +0530)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 6 Jul 2017 06:38:53 +0000 (08:38 +0200)
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>
drivers/pwm/pwm-hibvt.c

index d0e8f8542626a08b84149b4922ed60de7131204c..8dadc58d6cdfef2239e682aa94d3f1d3b6020236 100644 (file)
@@ -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,