From: Naveen Krishna Ch <naveenkrishna.ch@gmail.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: Naveen Krishna Chatradhi <ch.naveen@samsung.com>,
"linux-samsung-soc@vger.kernel.org"
<linux-samsung-soc@vger.kernel.org>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
"kgene.kim@samsung.com" <kgene.kim@samsung.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"cpgs@samsung.com" <cpgs@samsung.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"lars@metafoo.de" <lars@metafoo.de>,
Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH 2/4] hwmon: ntc_thermistor: Use the manufacturer name properly
Date: Tue, 24 Jun 2014 19:10:15 +0530 [thread overview]
Message-ID: <CAHfPSqBTKa8hRC6EH5qe4pTG9CF6dNAF4yn52SGu9zXNoY16QQ@mail.gmail.com> (raw)
In-Reply-To: <20140624133231.GI5856@leverpostej>
Hello Mark,
On 24 June 2014 19:02, Mark Rutland <mark.rutland@arm.com> wrote:
> On Tue, Jun 24, 2014 at 01:19:14PM +0100, Naveen Krishna Chatradhi wrote:
>> Murata Manufacturing Co., Ltd is the vendor for
>> NTC (Negative Temperature coefficient) based Thermistors.
>> But, the driver extensively uses "NTC" as the vendor name.
>>
>> This patch corrects the vendor name also updates the
>> compatibility strings according to the vendor-prefix.txt
>>
>> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
>> Cc: Guenter Roeck <linux@roeck-us.net>
>> ---
>> This changes is needed for the following reasons
>>
>> 1. The vendor prefix "ntc" is not defined in vendor-prefixes.txt
>> Thus, giving an error when checked with scripts/checkpatch.pl
>> 2. Murata Manufacturing Co., Ltd. Is the vendor for the
>> NTC (Negative Temperature Coefficient) based thermistors.
>> Hence, "murata" is the right vendor-prefix, Not "ntc".
>> 3. NTC is a technology used, But the prefix "ntc" is wrongly
>> and heavily used in the driver and the documentation.
>>
>> .../devicetree/bindings/arm/samsung/exynos-adc.txt | 2 +-
>> .../devicetree/bindings/hwmon/ntc_thermistor.txt | 12 ++++++------
>> Documentation/hwmon/ntc_thermistor | 8 ++++----
>> drivers/hwmon/Kconfig | 5 +++--
>> drivers/hwmon/ntc_thermistor.c | 12 ++++++------
>> 5 files changed, 20 insertions(+), 19 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt
>> index 5d49f2b..832fe8c 100644
>> --- a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt
>> +++ b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt
>> @@ -48,7 +48,7 @@ adc@12D10000 {
>>
>> /* NTC thermistor is a hwmon device */
>> ncp15wb473@0 {
>> - compatible = "ntc,ncp15wb473";
>> + compatible = "murata,ncp15wb473";
>> pullup-uv = <1800000>;
>> pullup-ohm = <47000>;
>> pulldown-ohm = <0>;
>> diff --git a/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt b/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt
>> index c6f6667..4e9f344 100644
>> --- a/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt
>> +++ b/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt
>> @@ -3,11 +3,11 @@ NTC Thermistor hwmon sensors
>>
>> Requires node properties:
>> - "compatible" value : one of
>> - "ntc,ncp15wb473"
>> - "ntc,ncp18wb473"
>> - "ntc,ncp21wb473"
>> - "ntc,ncp03wb473"
>> - "ntc,ncp15wl333"
>> + "murata,ncp15wb473"
>> + "murata,ncp18wb473"
>> + "murata,ncp21wb473"
>> + "murata,ncp03wb473"
>> + "murata,ncp15wl333"
>
> So we're outright changing these rather than deprecating the existing
> forms?
>
> In general we've pushed back on changes like this, and requested that
> the old strings are kept in both documentation and code as deprecated
> forms.
Should have kept the old bindings as deprecated.
>
> Can you guarantee that changing this is not going to stop someone's
> board worknig properly? I suspect not.
As a result of this change, Exynos4412-Trats2 board is broken.
Will re-spin with the deprecated binding.
>
> Mark.
>
>> - "pullup-uv" Pull up voltage in micro volts
>> - "pullup-ohm" Pull up resistor value in ohms
>> - "pulldown-ohm" Pull down resistor value in ohms
>> @@ -21,7 +21,7 @@ Read more about iio bindings at
>>
>> Example:
>> ncp15wb473@0 {
>> - compatible = "ntc,ncp15wb473";
>> + compatible = "murata,ncp15wb473";
>> pullup-uv = <1800000>;
>> pullup-ohm = <47000>;
>> pulldown-ohm = <0>;
>> diff --git a/Documentation/hwmon/ntc_thermistor b/Documentation/hwmon/ntc_thermistor
>> index 3bfda94..057b770 100644
>> --- a/Documentation/hwmon/ntc_thermistor
>> +++ b/Documentation/hwmon/ntc_thermistor
>> @@ -1,7 +1,7 @@
>> Kernel driver ntc_thermistor
>> =================
>>
>> -Supported thermistors:
>> +Supported thermistors from Murata:
>> * Murata NTC Thermistors NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, NCP15WL333
>> Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473', 'ncp15wl333'
>> Datasheet: Publicly available at Murata
>> @@ -15,9 +15,9 @@ Authors:
>> Description
>> -----------
>>
>> -The NTC thermistor is a simple thermistor that requires users to provide the
>> -resistance and lookup the corresponding compensation table to get the
>> -temperature input.
>> +The NTC (Negative Temperature Coefficient) thermistor is a simple thermistor
>> +that requires users to provide the resistance and lookup the corresponding
>> +compensation table to get the temperature input.
>>
>> The NTC driver provides lookup tables with a linear approximation function
>> and four circuit models with an option not to use any of the four models.
>> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
>> index 08531a1..154851b 100644
>> --- a/drivers/hwmon/Kconfig
>> +++ b/drivers/hwmon/Kconfig
>> @@ -1052,7 +1052,7 @@ config SENSORS_PC87427
>> will be called pc87427.
>>
>> config SENSORS_NTC_THERMISTOR
>> - tristate "NTC thermistor support"
>> + tristate "NTC based thermistor support from Murata"
>> depends on !OF || IIO=n || IIO
>> help
>> This driver supports NTC thermistors sensor reading and its
>> @@ -1060,7 +1060,8 @@ config SENSORS_NTC_THERMISTOR
>> send notifications about the temperature.
>>
>> Currently, this driver supports
>> - NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333.
>> + NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333
>> + from Murata.
>>
>> This driver can also be built as a module. If so, the module
>> will be called ntc-thermistor.
>> diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c
>> index e76feb86..6c38fc8 100644
>> --- a/drivers/hwmon/ntc_thermistor.c
>> +++ b/drivers/hwmon/ntc_thermistor.c
>> @@ -163,15 +163,15 @@ static int ntc_adc_iio_read(struct ntc_thermistor_platform_data *pdata)
>> }
>>
>> static const struct of_device_id ntc_match[] = {
>> - { .compatible = "ntc,ncp15wb473",
>> + { .compatible = "murata,ncp15wb473",
>> .data = &ntc_thermistor_id[0] },
>> - { .compatible = "ntc,ncp18wb473",
>> + { .compatible = "murata,ncp18wb473",
>> .data = &ntc_thermistor_id[1] },
>> - { .compatible = "ntc,ncp21wb473",
>> + { .compatible = "murata,ncp21wb473",
>> .data = &ntc_thermistor_id[2] },
>> - { .compatible = "ntc,ncp03wb473",
>> + { .compatible = "murata,ncp03wb473",
>> .data = &ntc_thermistor_id[3] },
>> - { .compatible = "ntc,ncp15wl333",
>> + { .compatible = "murata,ncp15wl333",
>> .data = &ntc_thermistor_id[4] },
>> { },
>> };
>> @@ -534,7 +534,7 @@ static struct platform_driver ntc_thermistor_driver = {
>>
>> module_platform_driver(ntc_thermistor_driver);
>>
>> -MODULE_DESCRIPTION("NTC Thermistor Driver");
>> +MODULE_DESCRIPTION("NTC based Thermistor Driver from Murata");
>> MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>");
>> MODULE_LICENSE("GPL");
>> MODULE_ALIAS("platform:ntc-thermistor");
>> --
>> 1.7.9.5
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe devicetree" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
--
Shine bright,
(: Nav :)
next prev parent reply other threads:[~2014-06-24 13:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-24 12:19 [PATCH 0/4] hwmon: ntc_thermistor: prepose vendor prefix change Naveen Krishna Chatradhi
[not found] ` <1403612356-23685-1-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-06-24 12:19 ` [PATCH 1/4] devicetree: bindings: Document murata vendor prefix Naveen Krishna Chatradhi
[not found] ` <1403612356-23685-2-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-06-24 13:30 ` Mark Rutland
2014-06-24 13:38 ` Naveen Krishna Ch
2014-06-24 12:19 ` [PATCH 2/4] hwmon: ntc_thermistor: Use the manufacturer name properly Naveen Krishna Chatradhi
[not found] ` <1403612356-23685-3-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-06-24 13:32 ` Mark Rutland
2014-06-24 13:40 ` Naveen Krishna Ch [this message]
2014-06-24 12:19 ` [PATCH 3/4] ARM: DTS: use new compatible string as per the documentation Naveen Krishna Chatradhi
[not found] ` <1403612356-23685-4-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-06-24 13:33 ` Mark Rutland
2014-06-24 13:41 ` Naveen Krishna Ch
2014-06-24 12:19 ` [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC Naveen Krishna Chatradhi
2014-06-24 21:54 ` Doug Anderson
[not found] ` <CAD=FV=Wmi73S4c5TPUqnNyycQ5xX5SbYy_ES-cbbJF2Hr0tqvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-25 5:04 ` Naveen Krishna Ch
[not found] ` <CAHfPSqAAWFtCQQrKBhLFuE2OuO_fwmUOhcOX9zKk8eMRMNSVvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-25 7:37 ` Javier Martinez Canillas
2014-06-25 17:00 ` Doug Anderson
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=CAHfPSqBTKa8hRC6EH5qe4pTG9CF6dNAF4yn52SGu9zXNoY16QQ@mail.gmail.com \
--to=naveenkrishna.ch@gmail.com \
--cc=ch.naveen@samsung.com \
--cc=cpgs@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=kgene.kim@samsung.com \
--cc=lars@metafoo.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mark.rutland@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).