From: Anton Vorontsov <cbouatmailru@gmail.com>
To: Jenny TC <jenny.tc@intel.com>
Cc: linux-kernel@vger.kernel.org, durgadoss.r@intel.com
Subject: Re: [PATCHv2] power_supply: Register battery as a thermal zone
Date: Sun, 17 Jun 2012 23:19:16 -0700 [thread overview]
Message-ID: <20120618061916.GA27786@lizard> (raw)
In-Reply-To: <20120618042927.GA25372@lizard>
On Sun, Jun 17, 2012 at 09:29:28PM -0700, Anton Vorontsov wrote:
[...]
> +static int psy_register_thermal(struct power_supply *psy)
> +{
> + int i;
> +
> + /* Register battery zone device psy reports temperature */
> + for (i = 0; i < psy->num_properties; i++) {
> + if (psy->properties[i] == POWER_SUPPLY_PROP_TEMP) {
> + psy->tzd = thermal_zone_device_register(psy->name, 0,
Oh, and just FYI, there was a (char *) cast for psy->name, but
I removed it. The cast should be not needed w/ this patch:
http://lkml.org/lkml/2012/6/18/28
Thanks,
--
Anton Vorontsov
Email: cbouatmailru@gmail.com
next prev parent reply other threads:[~2012-06-18 6:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-09 15:06 [PATCHv2] power_supply: Register battery as a thermal zone Jenny TC
2012-06-18 4:29 ` Anton Vorontsov
2012-06-18 5:10 ` Tc, Jenny
2012-06-18 6:19 ` Anton Vorontsov [this message]
2012-06-18 6:23 ` Tc, Jenny
-- strict thread matches above, loose matches on Subject: below --
2012-06-10 4:15 Tc, Jenny
2012-06-12 0:56 ` Anton Vorontsov
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=20120618061916.GA27786@lizard \
--to=cbouatmailru@gmail.com \
--cc=durgadoss.r@intel.com \
--cc=jenny.tc@intel.com \
--cc=linux-kernel@vger.kernel.org \
/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