public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwm: twl: Use to_twl() instead of container_of()
@ 2013-02-16 18:20 Johannes Thumshirn
  2013-02-16 18:56 ` Thierry Reding
  2013-02-16 19:54 ` Johannes Thumshirn
  0 siblings, 2 replies; 8+ messages in thread
From: Johannes Thumshirn @ 2013-02-16 18:20 UTC (permalink / raw)
  To: thierry.reding, morbidrsa; +Cc: linux-kernel

In twl6030_pwm_disable() use to_twl() instead of container_of() like in the
rest of the driver.

Signed-off-by: Johannes Thumshirn <morbidrsa@gmail.com>
---
 drivers/pwm/pwm-twl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/pwm/pwm-twl.c b/drivers/pwm/pwm-twl.c
index f783efc..a34c235 100644
--- a/drivers/pwm/pwm-twl.c
+++ b/drivers/pwm/pwm-twl.c
@@ -255,8 +255,7 @@ out:
 
 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
 {
-	struct twl_pwm_chip *twl = container_of(chip, struct twl_pwm_chip,
-						chip);
+	struct twl_pwm_chip *twl = to_twl(chip);
 	int ret;
 	u8 val;
 
-- 
1.8.1.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-02-17 15:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-16 18:20 [PATCH] pwm: twl: Use to_twl() instead of container_of() Johannes Thumshirn
2013-02-16 18:56 ` Thierry Reding
2013-02-16 19:42   ` Johannes Thumshirn
2013-02-16 19:54 ` Johannes Thumshirn
2013-02-16 20:21   ` Thierry Reding
2013-02-17 10:08     ` [PATCH] pwm: twl: Fix typo that broke build Johannes Thumshirn
2013-02-17 10:26       ` Thierry Reding
2013-02-17 15:04         ` Johannes Thumshirn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox