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] [day] [month] [year] [list]
Message-ID: <CAHLCerOZvYT71gcZd7_NpWKon6LSH9kcA1UK1objTc9aK4nOvA@mail.gmail.com>
Date:   Thu, 2 Apr 2020 16:14:05 +0530
From:   Amit Kucheria <amit.kucheria@...durent.com>
To:     Anson Huang <Anson.Huang@....com>
Cc:     Zhang Rui <rui.zhang@...el.com>,
        Daniel Lezcano <daniel.lezcano@...aro.org>,
        Shawn Guo <shawnguo@...nel.org>,
        Sascha Hauer <s.hauer@...gutronix.de>, kernel@...gutronix.de,
        Fabio Estevam <festevam@...il.com>,
        Linux PM list <linux-pm@...r.kernel.org>,
        lakml <linux-arm-kernel@...ts.infradead.org>,
        LKML <linux-kernel@...r.kernel.org>, Linux-imx@....com
Subject: Re: [PATCH] thermal: imx_sc_thermal: Add hwmon support

On Thu, Mar 26, 2020 at 8:50 AM Anson Huang <Anson.Huang@....com> wrote:
>
> Expose i.MX SC thermal sensors as HWMON devices.
>
> Signed-off-by: Anson Huang <Anson.Huang@....com>

Reviewed-by: Amit Kucheria <amit.kucheria@...aro.org>

> ---
>  drivers/thermal/imx_sc_thermal.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c
> index a8723b1..b2b68c9 100644
> --- a/drivers/thermal/imx_sc_thermal.c
> +++ b/drivers/thermal/imx_sc_thermal.c
> @@ -14,6 +14,7 @@
>  #include <linux/thermal.h>
>
>  #include "thermal_core.h"
> +#include "thermal_hwmon.h"
>
>  #define IMX_SC_MISC_FUNC_GET_TEMP      13
>
> @@ -115,6 +116,9 @@ static int imx_sc_thermal_probe(struct platform_device *pdev)
>                         ret = PTR_ERR(sensor->tzd);
>                         break;
>                 }
> +
> +               if (devm_thermal_add_hwmon_sysfs(sensor->tzd))
> +                       dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n");
>         }
>
>         of_node_put(sensor_np);
> --
> 2.7.4
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ