Re: [RFC PATCH 06/15] pwm: define a new pwm_state struct

From
Thierry Reding <hidden>
Date
2015-07-20 08:04:59
Also in
linux-arm-kernel, linux-leds, linux-pwm, linux-tegra
Reply to
Boris Brezillon, 2015-07-01
On Wed, Jul 01, 2015 at 10:21:52AM +0200, Boris Brezillon wrote:
[...]
quoted hunk ↗ jump to hunk
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
[...]
quoted hunk ↗ jump to hunk
+struct pwm_state {
+	unsigned int		period; 	/* in nanoseconds */
+	unsigned int		duty_cycle;	/* in nanoseconds */
+	enum pwm_polarity	polarity;
+};
No need for the extra padding here.

Thierry

Attachments

Thread (68 messages) 68 messages, 6 authors, last reply 2015-07-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help