From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Russell King <linux@arm.linux.org.uk>,
Kyungmin Park <kyungmin.park@samsung.com>,
Kukjin Kim <kgene.kim@samsung.com>,
myungjoo.ham@gmail.com, dg77.kim@samsung.com
Subject: Re: [PATCH v2 4/4] Exynos4 NURI: support for NTC thermistor
Date: Tue, 21 Jun 2011 11:50:34 +0100 [thread overview]
Message-ID: <20110621105033.GF22177@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1308622033-2521-5-git-send-email-myungjoo.ham@samsung.com>
On Tue, Jun 21, 2011 at 11:07:13AM +0900, MyungJoo Ham wrote:
> +#include <linux/platform_data/ntc_thermistor.h>
This doesn't appear to be in mainline.
> +/* NTC Thermistor */
> +static struct platform_device nuri_ncp15wb473_thermistor;
> +static int read_thermistor_uV(void)
Blank line between these two.
> +{
> + static struct s3c_adc_client *adc;
> + int val;
> + s64 converted;
> +
> + if (!adc) {
> + adc = s3c_adc_register(&nuri_ncp15wb473_thermistor,
> + NULL, NULL, 0);
> + if (IS_ERR_OR_NULL(adc)) {
> + pr_err("%s: Cannot get adc.\n", __func__);
> + return adc ? PTR_ERR(adc) : -ENODEV;
> + }
> + }
Why not do this in an initcall or in the device registration? This
looks like working around a limitation of the ntc_thermistor driver
which should be fixed as part of a mainline merge for that.
> +
> + if (IS_ERR_OR_NULL(adc))
> + return adc ? PTR_ERR(adc) : -ENODEV;
> +
> + val = s3c_adc_read(adc, 6);
> +
> + converted = 3300000LL * (s64) val;
> + converted >>= 12;
> +
> + pr_emerg("%s: %d -> %llduV\n", __func__, val, converted);
This looks like debug that was left in by mistake.
WARNING: multiple messages have this Message-ID (diff)
From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 4/4] Exynos4 NURI: support for NTC thermistor
Date: Tue, 21 Jun 2011 11:50:34 +0100 [thread overview]
Message-ID: <20110621105033.GF22177@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1308622033-2521-5-git-send-email-myungjoo.ham@samsung.com>
On Tue, Jun 21, 2011 at 11:07:13AM +0900, MyungJoo Ham wrote:
> +#include <linux/platform_data/ntc_thermistor.h>
This doesn't appear to be in mainline.
> +/* NTC Thermistor */
> +static struct platform_device nuri_ncp15wb473_thermistor;
> +static int read_thermistor_uV(void)
Blank line between these two.
> +{
> + static struct s3c_adc_client *adc;
> + int val;
> + s64 converted;
> +
> + if (!adc) {
> + adc = s3c_adc_register(&nuri_ncp15wb473_thermistor,
> + NULL, NULL, 0);
> + if (IS_ERR_OR_NULL(adc)) {
> + pr_err("%s: Cannot get adc.\n", __func__);
> + return adc ? PTR_ERR(adc) : -ENODEV;
> + }
> + }
Why not do this in an initcall or in the device registration? This
looks like working around a limitation of the ntc_thermistor driver
which should be fixed as part of a mainline merge for that.
> +
> + if (IS_ERR_OR_NULL(adc))
> + return adc ? PTR_ERR(adc) : -ENODEV;
> +
> + val = s3c_adc_read(adc, 6);
> +
> + converted = 3300000LL * (s64) val;
> + converted >>= 12;
> +
> + pr_emerg("%s: %d -> %llduV\n", __func__, val, converted);
This looks like debug that was left in by mistake.
next prev parent reply other threads:[~2011-06-21 10:50 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-16 9:09 [PATCH 1/2] Exynos4 NURI: configure regulators and PMIC MyungJoo Ham
2011-06-16 9:09 ` MyungJoo Ham
2011-06-16 9:09 ` [PATCH 2/2] Exynos4 NURI: add MAX17042 fuel gauge MyungJoo Ham
2011-06-16 9:09 ` MyungJoo Ham
2011-06-18 15:12 ` [PATCH 1/2] Exynos4 NURI: configure regulators and PMIC Mark Brown
2011-06-18 15:12 ` Mark Brown
2011-06-20 6:26 ` MyungJoo Ham
2011-06-20 6:26 ` MyungJoo Ham
2011-06-20 10:27 ` Mark Brown
2011-06-20 10:27 ` Mark Brown
2011-06-20 7:58 ` MyungJoo Ham
2011-06-20 7:58 ` MyungJoo Ham
2011-06-20 10:31 ` Mark Brown
2011-06-20 10:31 ` Mark Brown
2011-06-21 2:07 ` [PATCH v2 0/4] ARM: Exynos4: NURI Board Configuration Udpate MyungJoo Ham
2011-06-21 2:07 ` MyungJoo Ham
2011-06-21 2:07 ` [PATCH v2 1/4] Exynos4 NURI: configure regulators and PMIC MyungJoo Ham
2011-06-21 2:07 ` MyungJoo Ham
2011-06-21 5:33 ` Tushar Behera
2011-06-21 5:33 ` Tushar Behera
2011-06-21 11:10 ` Mark Brown
2011-06-21 11:10 ` Mark Brown
2011-06-21 11:49 ` Tushar Behera
2011-06-21 11:49 ` Tushar Behera
2011-06-21 11:56 ` Mark Brown
2011-06-21 11:56 ` Mark Brown
2011-06-22 2:37 ` MyungJoo Ham
2011-06-22 2:37 ` MyungJoo Ham
2011-06-22 2:31 ` MyungJoo Ham
2011-06-22 2:31 ` MyungJoo Ham
2011-06-22 3:43 ` Tushar Behera
2011-06-22 3:43 ` Tushar Behera
2011-06-22 9:17 ` Kukjin Kim
2011-06-22 9:17 ` Kukjin Kim
2011-06-21 11:07 ` Mark Brown
2011-06-21 11:07 ` Mark Brown
2011-06-21 2:07 ` [PATCH v2 2/4] Exynos4 NURI: configure MAX17042 fuel gauge MyungJoo Ham
2011-06-21 2:07 ` MyungJoo Ham
2011-06-21 2:07 ` MyungJoo Ham
2011-06-21 2:07 ` [PATCH v2 3/4] Exynos4 NURI: configure ADC MyungJoo Ham
2011-06-21 2:07 ` MyungJoo Ham
2011-06-21 2:07 ` [PATCH v2 4/4] Exynos4 NURI: support for NTC thermistor MyungJoo Ham
2011-06-21 2:07 ` MyungJoo Ham
2011-06-21 2:07 ` MyungJoo Ham
2011-06-21 10:50 ` Mark Brown [this message]
2011-06-21 10:50 ` Mark Brown
2011-06-22 5:00 ` MyungJoo Ham
2011-06-22 5:00 ` MyungJoo Ham
2011-06-22 11:08 ` Mark Brown
2011-06-22 11:08 ` Mark Brown
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=20110621105033.GF22177@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=dg77.kim@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=myungjoo.ham@gmail.com \
--cc=myungjoo.ham@samsung.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.