mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@iki.fi>
To: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Cc: linux-kernel@vger.kernel.org,
	Anton Vorontsov <cbouatmailru@gmail.com>,
	Anton Vorontsov <anton.vorontsov@linaro.org>
Subject: Re: [PATCH] smb347_charger: Cleanup power supply registration code in probe
Date: Thu, 19 Apr 2012 10:11:04 +0300	[thread overview]
Message-ID: <20120419071104.GG18520@mwesterb-mobl.lan> (raw)
In-Reply-To: <1334310292-22289-1-git-send-email-ramakrishna.pallala@intel.com>

On Fri, Apr 13, 2012 at 03:14:52PM +0530, Ramakrishna Pallala wrote:
> This patch checks if the usb or mains charging is enabled by the
> platform before registering with the power supply class.

Can you describe why this change is needed? The current code always registers
all the power-supplies but if we haven't enabled for example USB charging,
then the online property for USB ps is set to 0.

  reply	other threads:[~2012-04-19  7:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-13  9:44 Ramakrishna Pallala
2012-04-19  7:11 ` Mika Westerberg [this message]
2012-04-19 11:10   ` Pallala, Ramakrishna
2012-04-19 11:18     ` Mika Westerberg
2012-04-19 11:30       ` Pallala, Ramakrishna
2012-04-19 12:03         ` Mika Westerberg
2012-04-19 12:24           ` Pallala, Ramakrishna

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=20120419071104.GG18520@mwesterb-mobl.lan \
    --to=mika.westerberg@iki.fi \
    --cc=anton.vorontsov@linaro.org \
    --cc=cbouatmailru@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ramakrishna.pallala@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

all inboxes | Powered by JetHome®