diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-03-30 16:57:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-31 09:48:34 +0200 |
commit | 9b3f04e08a88e3233bb98bb7bf6435462b195f6a (patch) | |
tree | f635d2e1cd4b174a5f917deacad991e58d529bea /include | |
parent | 260327c81527f71fc8f7760accb791e199564593 (diff) | |
download | barebox-9b3f04e08a88e3233bb98bb7bf6435462b195f6a.tar.gz barebox-9b3f04e08a88e3233bb98bb7bf6435462b195f6a.tar.xz |
PWM: core: remove FLAG_ENABLED
In preparation for moving to a struct pwm_state like Linux does, turn
the flag into a variable.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/pwm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pwm.h b/include/pwm.h index ca01f5b53d..98af129974 100644 --- a/include/pwm.h +++ b/include/pwm.h @@ -63,6 +63,7 @@ struct pwm_ops { * @ops: The callbacks for this PWM * @duty_ns: The duty cycle of the PWM, in nano-seconds * @period_ns: The period of the PWM, in nano-seconds + * @p_enable: whether the PWM is enabled */ struct pwm_chip { int id; @@ -70,6 +71,7 @@ struct pwm_chip { const struct pwm_ops *ops; int duty_ns; int period_ns; + int p_enable; }; int pwmchip_add(struct pwm_chip *chip, struct device_d *dev); |