iio: light: si1145: use new '.masklength' accessors
authorNuno Sa <nuno.sa@analog.com>
Thu, 18 Jul 2024 13:38:01 +0000 (15:38 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:40 +0000 (10:13 +0100)
commit72c399838b2e9fed9856ee9c52375f628310dab9
tree4b3c5435fadb7aaa7880f043b9c1e403da1bc1c6
parent4ab4d09e871746411e05e67e6cedd029c3b0083c
iio: light: si1145: use new '.masklength' accessors

Make use of iio_get_masklength) and iio_for_each_active_channel() to
access '.masklength' so it can be annotated as __private when there
are no more direct users of it.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240718-dev-iio-masklength-private2-v1-15-8e12cd042906@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/si1145.c