]> git.baikalelectronics.ru Git - kernel.git/commit
iio: light: stk3310: Constify regmap_config
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 26 May 2020 21:02:22 +0000 (23:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:37 +0000 (11:49 +0100)
commitaba7dcfc98e15225f3e0cb2fa25c5c6fea818dcc
treef8450d70212b86539a7fc4fa4d319cc17ba79af9
parent9d06e964c2ccfba93643b60a9ae5c62ed8d4949a
iio: light: stk3310: Constify regmap_config

stk3310_regmap_config 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
  16027    5424     128   21579    544b drivers/iio/light/stk3310.o

After:
   text    data     bss     dec     hex filename
  16347    5104     128   21579    544b drivers/iio/light/stk3310.o

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