diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-05-23 20:45:00 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2022-06-22 16:33:54 +0300 |
commit | ef2e35d90890932ee4546231c775326ffd7a3909 (patch) | |
tree | 5b07a7751d0b64e276bc9cd2adfdbaf49d092439 /include/linux/pwm.h | |
parent | f6bc65d3eebbfbd7c2204aa72e57cf08b8d35ffe (diff) | |
download | linux-ef2e35d90890932ee4546231c775326ffd7a3909.tar.xz |
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>
Diffstat (limited to 'include/linux/pwm.h')
-rw-r--r-- | include/linux/pwm.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 76463b71ad4e..6d6946dec771 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -6,7 +6,6 @@ #include <linux/mutex.h> #include <linux/of.h> -struct pwm_capture; struct seq_file; struct pwm_chip; @@ -252,6 +251,16 @@ pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle, } /** + * struct pwm_capture - PWM capture data + * @period: period of the PWM signal (in nanoseconds) + * @duty_cycle: duty cycle of the PWM signal (in nanoseconds) + */ +struct pwm_capture { + unsigned int period; + unsigned int duty_cycle; +}; + +/** * struct pwm_ops - PWM controller operations * @request: optional hook for requesting a PWM * @free: optional hook for freeing a PWM @@ -300,16 +309,6 @@ struct pwm_chip { struct pwm_device *pwms; }; -/** - * struct pwm_capture - PWM capture data - * @period: period of the PWM signal (in nanoseconds) - * @duty_cycle: duty cycle of the PWM signal (in nanoseconds) - */ -struct pwm_capture { - unsigned int period; - unsigned int duty_cycle; -}; - #if IS_ENABLED(CONFIG_PWM) /* PWM user APIs */ struct pwm_device *pwm_request(int pwm_id, const char *label); |