From: Guenter Roeck <linux@roeck-us.net>
To: Punit Agrawal <punit.agrawal@arm.com>, linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
liviu.dudau@arm.com, Eduardo Valentin <edubezval@gmail.com>,
Zhang Rui <rui.zhang@intel.com>
Subject: Re: [PATCH v3] thermal: Fix thermal_zone_of_sensor_register to match documentation
Date: Wed, 05 Aug 2015 07:51:49 -0700 [thread overview]
Message-ID: <55C22305.2030403@roeck-us.net> (raw)
In-Reply-To: <1438768668-15225-1-git-send-email-punit.agrawal@arm.com>
On 08/05/2015 02:57 AM, Punit Agrawal wrote:
> thermal_zone_of_sensor_register is documented as returning a pointer
> to either a valid thermal_zone_device on success, or a corresponding
> ERR_PTR() value.
>
> In contrast, the function returns NULL when THERMAL_OF is configured
> off. Fix this.
>
> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: Eduardo Valentin <edubezval@gmail.com>
> Cc: Zhang Rui <rui.zhang@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
> ---
> Hi Guenter,
>
> It was pointed out that ENOSYS is frowned upon for anything other than
> indicating lack of support for a syscall. The rest of the functions in
> the file use ENODEV. Updating thermal_zone_of_sensor_register to do
> the same.
>
> Could you please re-ack if you're ok with this change?
>
> Thanks,
> Punit
>
> include/linux/thermal.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/thermal.h b/include/linux/thermal.h
> index 037e9df..f344e51 100644
> --- a/include/linux/thermal.h
> +++ b/include/linux/thermal.h
> @@ -364,7 +364,7 @@ static inline struct thermal_zone_device *
> thermal_zone_of_sensor_register(struct device *dev, int id, void *data,
> const struct thermal_zone_of_device_ops *ops)
> {
> - return NULL;
> + return ERR_PTR(-ENODEV);
> }
>
> static inline
>
next prev parent reply other threads:[~2015-08-05 14:51 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 15:22 [PATCH v2 00/10] Platform support for thermal management on Juno Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] " Punit Agrawal
2015-08-03 15:22 ` [PATCH v2 02/10] cpufreq-dt: Supply power coefficient when registering cooling devices Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] " Punit Agrawal
2015-08-03 15:22 ` [PATCH v2 03/10] cpufreq: arm_big_little: Add support to register a cpufreq cooling device Punit Agrawal
2015-08-03 15:22 ` Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] [PATCH v2 03/10] cpufreq: arm_big_little: Add support to register a cpufreq cooling dev Punit Agrawal
2015-08-03 15:22 ` [PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentation Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] " Punit Agrawal
[not found] ` <1438615378-14241-5-git-send-email-punit.agrawal-5wv7dgnIgG8@public.gmane.org>
2015-08-03 15:56 ` Guenter Roeck
2015-08-03 15:56 ` Guenter Roeck
2015-08-03 15:56 ` [lm-sensors] [PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentatio Guenter Roeck
2015-08-04 11:00 ` [PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentation Punit Agrawal
2015-08-04 11:00 ` [lm-sensors] [PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentatio Punit Agrawal
2015-08-05 9:57 ` [PATCH v3] thermal: Fix thermal_zone_of_sensor_register to match documentation Punit Agrawal
2015-08-05 14:51 ` Guenter Roeck [this message]
2015-08-03 15:22 ` [PATCH v2 05/10] Documentation: add DT bindings for ARM SCPI sensors Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] " Punit Agrawal
2015-09-03 15:08 ` Punit Agrawal
2015-09-03 15:08 ` [lm-sensors] " Punit Agrawal
2015-08-03 15:22 ` [PATCH v2 06/10] firmware: arm_scpi: Extend to support sensors Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] " Punit Agrawal
2015-08-03 15:22 ` [PATCH v2 07/10] hwmon: Support sensors exported via ARM SCP interface Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] " Punit Agrawal
2015-08-04 21:32 ` Guenter Roeck
2015-08-04 21:32 ` [lm-sensors] " Guenter Roeck
2015-08-05 10:17 ` Punit Agrawal
2015-08-05 10:17 ` [lm-sensors] " Punit Agrawal
[not found] ` <1438615378-14241-1-git-send-email-punit.agrawal-5wv7dgnIgG8@public.gmane.org>
2015-08-03 15:22 ` [PATCH v2 01/10] devicetree: bindings: Add optional dynamic-power-coefficient property Punit Agrawal
2015-08-03 15:22 ` Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] " Punit Agrawal
2015-08-03 15:22 ` [PATCH v2 08/10] hwmon: Support registration of thermal zones for SCP temperature sensors Punit Agrawal
2015-08-03 15:22 ` Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] [PATCH v2 08/10] hwmon: Support registration of thermal zones for SCP temperature senso Punit Agrawal
2015-08-04 21:39 ` [PATCH v2 08/10] hwmon: Support registration of thermal zones for SCP temperature sensors Guenter Roeck
2015-08-04 21:39 ` [lm-sensors] [PATCH v2 08/10] hwmon: Support registration of thermal zones for SCP temperature s Guenter Roeck
[not found] ` <55C13105.9070509-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2015-08-05 10:17 ` [PATCH v2 08/10] hwmon: Support registration of thermal zones for SCP temperature sensors Punit Agrawal
2015-08-05 10:17 ` Punit Agrawal
2015-08-05 10:17 ` [lm-sensors] [PATCH v2 08/10] hwmon: Support registration of thermal zones for SCP temperature s Punit Agrawal
2015-08-03 15:22 ` [PATCH v2 09/10] arm64: dts: Add sensor node to Juno dt Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] " Punit Agrawal
2015-08-03 15:22 ` [PATCH v2 10/10] arm64: dts: Create SoC thermal zone for Juno Punit Agrawal
2015-08-03 15:22 ` [lm-sensors] " Punit Agrawal
[not found] ` <1438615378-14241-11-git-send-email-punit.agrawal-5wv7dgnIgG8@public.gmane.org>
2015-08-12 15:55 ` Liviu Dudau
2015-08-12 15:55 ` Liviu Dudau
2015-08-12 15:55 ` [lm-sensors] " Liviu Dudau
2015-08-13 14:28 ` Punit Agrawal
2015-08-13 14:28 ` Punit Agrawal
2015-08-13 14:28 ` [lm-sensors] " Punit Agrawal
2015-08-14 12:38 ` Punit Agrawal
2015-08-14 12:38 ` Punit Agrawal
2015-08-14 12:38 ` [lm-sensors] " Punit Agrawal
[not found] ` <9hhsi7mgi44.fsf-Z9gB6HwUD+TZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2015-08-14 12:44 ` Punit Agrawal
2015-08-14 12:44 ` Punit Agrawal
2015-08-14 12:44 ` [lm-sensors] " Punit Agrawal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55C22305.2030403@roeck-us.net \
--to=linux@roeck-us.net \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=liviu.dudau@arm.com \
--cc=punit.agrawal@arm.com \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.