[PATCH 0/2] iio: proximity: vcnl3020: make vcnl3020_property const

David Lechner posted 2 patches 3 months, 1 week ago
drivers/iio/proximity/vcnl3020.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
[PATCH 0/2] iio: proximity: vcnl3020: make vcnl3020_property const
Posted by David Lechner 3 months, 1 week ago
We can make const struct vcnl3020_property vcnl3020_led_current_property
const since it is read-only data. For this to really be useful, we also
have another change to pass this struct by pointer instead of by value.

---
David Lechner (2):
      iio: proximity: vcnl3020: pass struct vcnl3020_property by pointer
      iio: proximity: vcnl3020: make vcnl3020_property const

 drivers/iio/proximity/vcnl3020.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
base-commit: 14071b9cf2d751ff9bc8b5e43fa94fbf08aceea1
change-id: 20250628-iio-const-data-25-452e9458133b

Best regards,
-- 
David Lechner <dlechner@baylibre.com>
Re: [PATCH 0/2] iio: proximity: vcnl3020: make vcnl3020_property const
Posted by Jonathan Cameron 3 months, 1 week ago
On Sat, 28 Jun 2025 13:23:47 -0500
David Lechner <dlechner@baylibre.com> wrote:

> We can make const struct vcnl3020_property vcnl3020_led_current_property
> const since it is read-only data. For this to really be useful, we also
> have another change to pass this struct by pointer instead of by value.
> 
Applied to the testing branch of iio.git.

Thanks,

Jonathan

> ---
> David Lechner (2):
>       iio: proximity: vcnl3020: pass struct vcnl3020_property by pointer
>       iio: proximity: vcnl3020: make vcnl3020_property const
> 
>  drivers/iio/proximity/vcnl3020.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> ---
> base-commit: 14071b9cf2d751ff9bc8b5e43fa94fbf08aceea1
> change-id: 20250628-iio-const-data-25-452e9458133b
> 
> Best regards,