Messages in this thread | | | From | "Pallala, Ramakrishna" <> | Subject | RE: [PATCH] smb347_charger: Cleanup power supply registration code in probe | Date | Thu, 19 Apr 2012 11:10:58 +0000 |
| |
> Sent: Thursday, April 19, 2012 12:41 PM > To: Pallala, Ramakrishna > Cc: linux-kernel@vger.kernel.org; Anton Vorontsov; Anton Vorontsov > Subject: Re: [PATCH] smb347_charger: Cleanup power supply registration code in probe > > 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.
If we haven't enabled USB charging then why to waste kernel resources? What we will gain by registering with power supply class if USB charging is not enabled?
Thanks, Ram
| |