Re: [PATCH] iio: light: ltr501: Constify structs

2020-05-10 Thread Jonathan Cameron
On Sat, 2 May 2020 17:40:10 +0100 Jonathan Cameron wrote: > On Sat, 2 May 2020 11:52:37 +0200 > Rikard Falkeborn wrote: > > > 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

Re: [PATCH] iio: light: ltr501: Constify structs

2020-05-02 Thread Jonathan Cameron
On Sat, 2 May 2020 11:52:37 +0200 Rikard Falkeborn wrote: > 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 pointer

[PATCH] iio: light: ltr501: Constify structs

2020-05-02 Thread Rikard Falkeborn
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 p