]> git.baikalelectronics.ru Git - kernel.git/commit
iio: magnetometer: mmc35240: Constify struct reg_default
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 26 May 2020 21:02:23 +0000 (23:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:38 +0000 (11:49 +0100)
commitfc90c941d9d47d778cebd985644c5ee0b0b75206
treeef5408ea891024ddc8f61b08f8f5ac9e38d0f9bf
parentaba7dcfc98e15225f3e0cb2fa25c5c6fea818dcc
iio: magnetometer: mmc35240: Constify struct reg_default

mmc35240_reg_defaults is not modified and can be made const to allow the
compiler to put it in read-only memory.

Before:
   text    data     bss     dec     hex filename
   9759    3288     128   13175    3377 drivers/iio/magnetometer/mmc35240.o

After:
   text    data     bss     dec     hex filename
   9823    3224     128   13175    3377 drivers/iio/magnetometer/mmc35240.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/mmc35240.c