lkml.org 
[lkml]   [2020]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH v3 06/11] power: supply: core: fix HWMON temperature labels
    tempX_label files are swapped compared to what
    power_supply_hwmon_temp_to_property() uses. Make them match.

    Cc: stable@vger.kernel.org
    Fixes: e67d4dfc9ff1 ("power: supply: Add HWMON compatibility layer")
    Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
    ---
    v2: split parameter checking to separate patch
    ---
    drivers/power/supply/power_supply_hwmon.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/power/supply/power_supply_hwmon.c b/drivers/power/supply/power_supply_hwmon.c
    index 75cf861ba492..67b6ee60085e 100644
    --- a/drivers/power/supply/power_supply_hwmon.c
    +++ b/drivers/power/supply/power_supply_hwmon.c
    @@ -144,7 +144,7 @@ static int power_supply_hwmon_read_string(struct device *dev,
    u32 attr, int channel,
    const char **str)
    {
    - *str = channel ? "temp" : "temp ambient";
    + *str = channel ? "temp ambient" : "temp";
    return 0;
    }

    --
    2.20.1
    \
     
     \ /
      Last update: 2020-04-03 22:21    [W:3.101 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site