mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
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>
This commit is contained in:
parent
b7f99fa1b6
commit
eb0e400c51
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user