From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Amit Daniel Kachhap <amit.kachhap@linaro.org>
Cc: "linux-pm@lists.linux-foundation.org"
<linux-pm@lists.linux-foundation.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"linux-samsung-soc@vger.kernel.org"
<linux-samsung-soc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"durgadoss.r@intel.com" <durgadoss.r@intel.com>,
"lenb@kernel.org" <lenb@kernel.org>,
"rui.zhang@intel.com" <rui.zhang@intel.com>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"linaro-dev@lists.linaro.org" <linaro-dev@lists.linaro.org>,
"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>,
"khali@linux-fr.org" <khali@linux-fr.org>,
"patches@linaro.org" <patches@linaro.org>
Subject: Re: [PATCH v4 2/5] hwmon: exynos4: Move thermal sensor driver to driver/thermal directory
Date: Sat, 12 May 2012 08:38:05 -0700 [thread overview]
Message-ID: <20120512153805.GB5769@ericsson.com> (raw)
In-Reply-To: <1336815645-29625-3-git-send-email-amit.kachhap@linaro.org>
On Sat, May 12, 2012 at 05:40:42AM -0400, Amit Daniel Kachhap wrote:
> This movement is needed because the hwmon entries and corresponding
> sysfs interface is a duplicate of utilities already provided by
> driver/thermal/thermal_sys.c. The goal is to place it in thermal folder
> and add necessary functions to use the in-kernel thermal interfaces.
>
> CC: Guenter Roeck <guenter.roeck@ericsson.com>
> Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
> Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Some suggestions, possibly for later cleanup.
> -
> - data = kzalloc(sizeof(struct exynos4_tmu_data), GFP_KERNEL);
If you use devm_kzalloc, you won't have to free it.
[ ...]
> - data->mem = request_mem_region(data->mem->start,
> - resource_size(data->mem), pdev->name);
Same here, with devm_request_mem_region.
[ ... ]
> - data->base = ioremap(data->mem->start, resource_size(data->mem));
and devm_ioremap
[ ... ]
> - ret = request_irq(data->irq, exynos4_tmu_irq,
and devm_request_irq
Guenter
next prev parent reply other threads:[~2012-05-12 15:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-12 9:40 [PATCH v4 0/5] thermal: exynos: Add kernel thermal support for exynos platform Amit Daniel Kachhap
2012-05-12 9:40 ` [PATCH v4 1/5] thermal: Add generic cpufreq cooling implementation Amit Daniel Kachhap
[not found] ` <1336815645-29625-2-git-send-email-amit.kachhap-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-06-26 3:12 ` Rob Lee
2012-06-26 7:42 ` Valentin, Eduardo
2012-07-10 4:46 ` amit kachhap
2012-07-10 7:01 ` Hongbo Zhang
2012-07-12 3:20 ` amit kachhap
[not found] ` <CADGdYn5Enfd1Et3gwVqWjMfMHuyk1LJ9WCScOGpPF0ZLEyk0Fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-07-12 5:24 ` Hongbo Zhang
2012-07-13 10:09 ` Hongbo Zhang
2012-07-13 10:59 ` amit kachhap
2012-05-12 9:40 ` [PATCH v4 2/5] hwmon: exynos4: Move thermal sensor driver to driver/thermal directory Amit Daniel Kachhap
2012-05-12 15:38 ` Guenter Roeck [this message]
[not found] ` <1336815645-29625-1-git-send-email-amit.kachhap-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-05-12 9:40 ` [PATCH v4 3/5] thermal: exynos5: Add exynos5 thermal sensor driver support Amit Daniel Kachhap
2012-05-12 9:40 ` [PATCH v4 4/5] thermal: exynos: Register the tmu sensor with the kernel thermal layer Amit Daniel Kachhap
[not found] ` <1336815645-29625-5-git-send-email-amit.kachhap-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-08-10 11:49 ` Hongbo Zhang
2012-05-12 9:40 ` [PATCH v4 5/5] ARM: exynos: Add thermal sensor driver platform data support Amit Daniel Kachhap
2012-07-10 5:21 ` [linux-pm] [PATCH v4 0/5] thermal: exynos: Add kernel thermal support for exynos platform amit daniel kachhap
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=20120512153805.GB5769@ericsson.com \
--to=guenter.roeck@ericsson.com \
--cc=akpm@linux-foundation.org \
--cc=amit.kachhap@linaro.org \
--cc=durgadoss.r@intel.com \
--cc=khali@linux-fr.org \
--cc=lenb@kernel.org \
--cc=linaro-dev@lists.linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=patches@linaro.org \
--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 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).