summaryrefslogtreecommitdiff
path: root/drivers/iio/light/veml6070.c
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-10-17 23:39:25 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-10-21 19:19:25 +0100
commiteb0e400c510ae31b3d5e4a460291b3d8e2dcff17 (patch)
tree2de83c75ee442aaaaf9d1dd77e3af836a12148bb /drivers/iio/light/veml6070.c
parentb7f99fa1b64af2f696b13cec581cb4cd7d3982b8 (diff)
downloadlwn-eb0e400c510ae31b3d5e4a460291b3d8e2dcff17.tar.gz
lwn-eb0e400c510ae31b3d5e4a460291b3d8e2dcff17.zip
iio: light: veml6070: use unsigned int instead of unsigned
Trivial modification to use the recommended keyword 'int' after 'unsigned' for unsigned integers. Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://patch.msgid.link/20241017-veml6070-integration-time-v1-1-3507d17d562a@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light/veml6070.c')
-rw-r--r--drivers/iio/light/veml6070.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/light/veml6070.c b/drivers/iio/light/veml6070.c
index 898e285322d4..484b767df481 100644
--- a/drivers/iio/light/veml6070.c
+++ b/drivers/iio/light/veml6070.c
@@ -87,14 +87,14 @@ static const struct iio_chan_spec veml6070_channels[] = {
}
};
-static int veml6070_to_uv_index(unsigned val)
+static int veml6070_to_uv_index(unsigned int val)
{
/*
* conversion of raw UV intensity values to UV index depends on
* integration time (IT) and value of the resistor connected to
* the RSET pin (default: 270 KOhm)
*/
- unsigned uvi[11] = {
+ unsigned int uvi[11] = {
187, 373, 560, /* low */
746, 933, 1120, /* moderate */
1308, 1494, /* high */