[PATCH v5 05/46] pwm: introduce the pwm_args concept

From
Stephen Boyd <hidden>
Date
2016-03-30 21:55:19
Also in
dri-devel, intel-gfx, linux-clk, linux-fbdev, linux-input, linux-leds, linux-pwm, linux-rockchip, linux-samsung-soc, lkml
Reply to
Boris Brezillon, 2016-03-30
On 03/30, Boris Brezillon wrote:
quoted hunk ↗ jump to hunk
@@ -74,6 +74,23 @@ enum pwm_polarity {
 	PWM_POLARITY_INVERSED,
 };
 
+/**
+ * struct pwm_args - PWM arguments
+ * @period: reference period
+ * @polarity: reference polarity
+ *
+ * This structure describe board-dependent arguments attached to a PWM
s/describe/describes/
quoted hunk ↗ jump to hunk
+ * device. Those arguments are usually retrieved from the PWM lookup table or
+ * DT definition.
+ * This should not be confused with the PWM state: PWM args not representing
s/not representing/don't represent/ ?
+ * the current PWM state, but the configuration the PWM user plan to use
s/plan/plans/
quoted hunk ↗ jump to hunk
+ * on this PWM device.
+ */
+struct pwm_args {
+	unsigned int period;
+	enum pwm_polarity polarity;
+};
+
-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Thread (105 messages) 105 messages, 10 authors, last reply 2016-04-14
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