[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VcervG-TWbt6t7q7505meXG=0E3hrO8pT-pc_=BJGqwpw@mail.gmail.com>
Date: Mon, 26 Feb 2018 16:48:23 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Enric Balletbo i Serra <enric.balletbo@...labora.com>
Cc: "Zhang, Rui" <rui.zhang@...el.com>,
"Rafael J. Wysocki" <rjw@...ysocki.net>, groeck@...omium.org,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
snanda@...omium.org, Len Brown <lenb@...nel.org>,
Eduardo Valentin <edubezval@...il.com>,
Linux PM <linux-pm@...r.kernel.org>
Subject: Re: [RESEND PATCH v3 2/2] thermal: core: introduce thermal zone
device mode control
On Mon, Feb 26, 2018 at 4:41 PM, Enric Balletbo i Serra
<enric.balletbo@...labora.com> wrote:
> --- a/drivers/thermal/thermal_sysfs.c
> +++ b/drivers/thermal/thermal_sysfs.c
> if (!strncmp(buf, "enabled", sizeof("enabled") - 1))
> - result = tz->ops->set_mode(tz, THERMAL_DEVICE_ENABLED);
> + mode = THERMAL_DEVICE_ENABLED;
> else if (!strncmp(buf, "disabled", sizeof("disabled") - 1))
> - result = tz->ops->set_mode(tz, THERMAL_DEVICE_DISABLED);
> + mode = THERMAL_DEVICE_DISABLED;
> else
> - result = -EINVAL;
> + return -EINVAL;
sysfs_match_string()?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists