Re: [rfc] separate sharpsl_pm initialization from sysfs code

Richard Purdie
2006-03-09T13:33:34Z

On Thu, 2006-03-09 at 13:42 +0100, Pavel Machek wrote:
> Hi!
>
> On collie, battery sensing code is not on platform bus -- it is on
> ucb1x00. Is this acceptable way to make sharpsl_pm useful for collie?
> It separates code that is bus-independent, so collie can call only
> code it needs.

I'm not sure why the battery sensing code being on a non-platform bus
prevents you from registering a platform device as mentioned in my other
email? If you register the device, you then get the benefit of all the
features of the common code like the sysfs attributes and common
charging code. Its not really designed to be used outside the device
model and I suspect trying to do so is just going to mean lots more
nasty changes to it in the future...

Richard