• Bhumika Goyal's avatar
    regulator: palmas-regulator: constify regulator_ops structure · 0e5a7680
    Bhumika Goyal authored
    Declare regulator_ops structure as const as it is only stored in the ops
    field of a regulator_desc structure. This field is of type const, so
    regulator_ops structures having this property can be made const too.
    
    File size before: drivers/regulator/palmas-regulator.o
       text	   data	    bss	    dec	    hex	filename
       9752	   6296	    288	  16336	   3fd0 regulator/palmas-regulator.o
    
    File size after: drivers/regulator/palmas-regulator.o
       text	   data	    bss	    dec	    hex	filename
      12856	   3480	      8	  16344	   3fd0 regulator/palmas-regulator.o
    Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    0e5a7680
palmas-regulator.c 44.4 KB