lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241019151809.5d2052cf@jic23-huawei>
Date: Sat, 19 Oct 2024 15:18:09 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Javier Carrasco <javier.carrasco.cruz@...il.com>
Cc: Lars-Peter Clausen <lars@...afoo.de>, Rob Herring <robh@...nel.org>,
 Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
 <conor+dt@...nel.org>, linux-iio@...r.kernel.org,
 linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH 1/4] iio: light: veml6070: use unsigned int instead of
 unsigned

On Thu, 17 Oct 2024 23:39:25 +0200
Javier Carrasco <javier.carrasco.cruz@...il.com> wrote:

> Trivial modification to use the recommended keyword 'int' after
> 'unsigned' for unsigned integers.
> 
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@...il.com>
Applied.

> ---
>  drivers/iio/light/veml6070.c | 4 ++--
>  1 file 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 */
> 


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ