Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pwm: Reorder header file to get rid of struct pwm_capture forward declaration

There is no cyclic dependency, so by reordering the forward declaration
can be dropped.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Uwe Kleine-König and committed by
Thierry Reding
ef2e35d9 f6bc65d3

+10 -11
+10 -11
include/linux/pwm.h
··· 6 6 #include <linux/mutex.h> 7 7 #include <linux/of.h> 8 8 9 - struct pwm_capture; 10 9 struct seq_file; 11 10 12 11 struct pwm_chip; ··· 251 252 } 252 253 253 254 /** 255 + * struct pwm_capture - PWM capture data 256 + * @period: period of the PWM signal (in nanoseconds) 257 + * @duty_cycle: duty cycle of the PWM signal (in nanoseconds) 258 + */ 259 + struct pwm_capture { 260 + unsigned int period; 261 + unsigned int duty_cycle; 262 + }; 263 + 264 + /** 254 265 * struct pwm_ops - PWM controller operations 255 266 * @request: optional hook for requesting a PWM 256 267 * @free: optional hook for freeing a PWM ··· 307 298 /* only used internally by the PWM framework */ 308 299 struct list_head list; 309 300 struct pwm_device *pwms; 310 - }; 311 - 312 - /** 313 - * struct pwm_capture - PWM capture data 314 - * @period: period of the PWM signal (in nanoseconds) 315 - * @duty_cycle: duty cycle of the PWM signal (in nanoseconds) 316 - */ 317 - struct pwm_capture { 318 - unsigned int period; 319 - unsigned int duty_cycle; 320 301 }; 321 302 322 303 #if IS_ENABLED(CONFIG_PWM)