diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-05-02 11:52:37 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-05-11 21:19:19 +0200 |
commit | 6b46ddb51eab245c64b6b9c55c189e45967d213f (patch) | |
tree | 9da77768d1afdf7d0fcf94432530cc838a83068a /MAINTAINERS | |
parent | staging: iio: ad5933: attach life-cycle of kfifo buffer to parent device and ... (diff) | |
download | linux-6b46ddb51eab245c64b6b9c55c189e45967d213f.tar.xz linux-6b46ddb51eab245c64b6b9c55c189e45967d213f.zip |
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 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions