> Instead of manually iterating the array of allowed gain values, use
> find_closest. Storing the current gain setting avoids accessing the
> hardware on each query.
nitpick below
> Signed-off-by: Stefan Brüns
> ---
> drivers/iio/light/vl6180.c | 85
>
> Instead of manually iterating the array of allowed gain values, use
> find_closest. Storing the current gain setting avoids accessing the
> hardware on each query.
nitpick below
> Signed-off-by: Stefan Brüns
> ---
> drivers/iio/light/vl6180.c | 85
>
Instead of manually iterating the array of allowed gain values, use
find_closest. Storing the current gain setting avoids accessing the
hardware on each query.
Signed-off-by: Stefan Brüns
---
drivers/iio/light/vl6180.c | 85
Instead of manually iterating the array of allowed gain values, use
find_closest. Storing the current gain setting avoids accessing the
hardware on each query.
Signed-off-by: Stefan Brüns
---
drivers/iio/light/vl6180.c | 85 --
1 file changed, 44
4 matches
Mail list logo