Re: [rfc] separate sharpsl_pm initialization from sysfs code

From: Richard Purdie
Date: Thu Mar 09 2006 - 08:30:59 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/