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]
Date:   Sat, 25 Feb 2023 07:02:25 -0800
From:   Guenter Roeck <linux@...ck-us.net>
To:     Tony O'Brien <tony.obrien@...iedtelesis.co.nz>
Cc:     jdelvare@...e.com, linux-hwmon@...r.kernel.org,
        chris.packham@...iedtelesis.co.nz, hdegoede@...hat.com,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] hwmon: (adt7475) Display smoothing attributes in
 correct order

On Wed, Feb 22, 2023 at 01:52:27PM +1300, Tony O'Brien wrote:
> Throughout the ADT7475 driver, attributes relating to the temperature
> sensors are displayed in the order Remote 1, Local, Remote 2.  Make
> temp_st_show() conform to this expectation so that values set by
> temp_st_store() can be displayed using the correct attribute.
> 
> Fixes: 8f05bcc33e74 ("hwmon: (adt7475) temperature smoothing")
> Signed-off-by: Tony O'Brien <tony.obrien@...iedtelesis.co.nz>

Applied.

Thanks,
Guenter

> ---
> Changes in v2:
> - None
>  drivers/hwmon/adt7475.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c
> index 51b3d16c3223..77222c35a38e 100644
> --- a/drivers/hwmon/adt7475.c
> +++ b/drivers/hwmon/adt7475.c
> @@ -556,11 +556,11 @@ static ssize_t temp_st_show(struct device *dev, struct device_attribute *attr,
>  		val = data->enh_acoustics[0] & 0xf;
>  		break;
>  	case 1:
> -		val = (data->enh_acoustics[1] >> 4) & 0xf;
> +		val = data->enh_acoustics[1] & 0xf;
>  		break;
>  	case 2:
>  	default:
> -		val = data->enh_acoustics[1] & 0xf;
> +		val = (data->enh_acoustics[1] >> 4) & 0xf;
>  		break;
>  	}
>  

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ