Re: Adding support for configuring polarity in PWM framework.

From: Thierry Reding
Date: Mon Jul 16 2012 - 07:39:21 EST


On Mon, Jul 16, 2012 at 11:15:50AM +0000, Philip, Avinash wrote:
> Hi Thierry,
>
> On one of the custom boards we are using, uses PWM to drive the backlight. However, for
> this device, PWM signal needs to be inversed.
> So, we need to a platform data to indicate this parameter.
> Current PWM framework doesn't provide .support for setting polarity (or inverse polarity).
>
> Have you come across any such requirements? If so, do you have any plans to implement it?

I don't have any plans to implement such a feature.

> I am planning to add support for the same but want to avoid duplication of work.
>
> If you have no plans, then I will send a patch to support the same.

I wonder how you want to implement this. You'll need special hardware
support for it and you may be able to implement it in the driver itself
instead of putting it into the framework. Anyway I'm interested in
seeing your patch.

Thierry

Attachment: pgp00000.pgp
Description: PGP signature