Thread (68 messages) 68 messages, 6 authors, 2015-07-20

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

STALE4093d

From: Boris Brezillon <hidden>
Date: 2015-07-20 10:01:16
Also in: linux-fbdev, linux-leds, linux-pwm, linux-tegra

On Mon, 20 Jul 2015 10:04:59 +0200
Thierry Reding [off-list ref] wrote:
On Wed, Jul 01, 2015 at 10:21:52AM +0200, Boris Brezillon wrote:
[...]
quoted
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
[...]
quoted
+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.
What do you mean by "extra padding" ?
I just reused the indentation used in the pwm_device struct.

Would you prefer something like that ?

struct pwm_state {
	unsigned int period; 		/* in nanoseconds */
	unsigned int duty_cycle;	/* in nanoseconds */
	enum pwm_polarity polarity;
};

-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help