Re: [PATCH] pwm: twl: Use to_twl() instead of container_of()

From: Thierry Reding
Date: Sat Feb 16 2013 - 13:56:25 EST


On Sat, Feb 16, 2013 at 07:20:51PM +0100, Johannes Thumshirn wrote:
> In twl6030_pwm_disable() use to_twl() instead of container_of() like in the
> rest of the driver.
>
> Signed-off-by: Johannes Thumshirn <morbidrsa@xxxxxxxxx>
> ---
> drivers/pwm/pwm-twl.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)

Hi Johannes,

I see that container_of() is also still used in twl4030_pwm_free() and
twl6030_pwm_enable(). Would you mind fixing those up as well?

Thierry

Attachment: pgp00000.pgp
Description: PGP signature