summaryrefslogtreecommitdiff
path: root/drivers/iio/industrialio-core.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-05-02 12:52:37 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-05-11 22:19:19 +0300
commit6b46ddb51eab245c64b6b9c55c189e45967d213f (patch)
tree9da77768d1afdf7d0fcf94432530cc838a83068a /drivers/iio/industrialio-core.c
parentda7de29bb1716c96cab1566d845e434848604be4 (diff)
downloadlinux-6b46ddb51eab245c64b6b9c55c189e45967d213f.tar.xz
iio: light: ltr501: Constify structs
Constify some data structs that are never changed. In order to do so, also update a couple of functions that now need to accept pointers to const struct instead of struct. While at it, update a few more functions to accept pointers to const struct instead of pointers. This allows the compiler to put more data in the code segment instead of the data segment, as seen by the output of the file command: Before: text data bss dec hex filename 27080 8144 192 35416 8a58 drivers/iio/light/ltr501.o After: text data bss dec hex filename 27688 7536 192 35416 8a58 drivers/iio/light/ltr501.o Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
0 files changed, 0 insertions, 0 deletions