OSDN Git Service

hwmon: (adt7475) Display smoothing attributes in correct order
authorTony O'Brien <tony.obrien@alliedtelesis.co.nz>
Wed, 22 Feb 2023 00:52:27 +0000 (13:52 +1300)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 5 Mar 2023 23:08:06 +0000 (15:08 -0800)
commit5f8d1e3b6f9b5971f9c06d5846ce00c49e3a8d94
treecfb5d4dbbc8dc6cf073516f3cec42e3f1cc83cac
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
hwmon: (adt7475) Display smoothing attributes in correct order

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@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20230222005228.158661-2-tony.obrien@alliedtelesis.co.nz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7475.c