Thread (105 messages) 105 messages, 10 authors, 2016-04-14

Re: [PATCH v5 16/46] pwm: move the enabled/disabled info into pwm_state

From: Thierry Reding <hidden>
Date: 2016-04-12 11:52:03
Also in: dri-devel, intel-gfx, linux-arm-kernel, linux-clk, linux-fbdev, linux-leds, linux-pwm, linux-rockchip, linux-samsung-soc, lkml

On Wed, Mar 30, 2016 at 10:03:39PM +0200, Boris Brezillon wrote:
[...]
quoted hunk ↗ jump to hunk
@@ -145,7 +146,11 @@ static inline void pwm_get_state(const struct pwm_device *pwm,
 
 static inline bool pwm_is_enabled(const struct pwm_device *pwm)
 {
-	return test_bit(PWMF_ENABLED, &pwm->flags);
+	struct pwm_state pstate;
No need for the p prefix, in my opinion.

Thierry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help