diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2020-03-30 16:57:12 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-31 09:48:34 +0200 |
commit | 91912a0d5576441db1a4c9a03d309258bd49f149 (patch) | |
tree | 8bf435ff2fe7ed945da5a00e94cab123ce50cc22 /drivers/led | |
parent | bc2c433d1e52833614b0910c545e8b808407a2f5 (diff) | |
download | barebox-91912a0d5576441db1a4c9a03d309258bd49f149.tar.gz barebox-91912a0d5576441db1a4c9a03d309258bd49f149.tar.xz |
PWM: core: apply initial state in of_pwm_request
This functions prepares a state that can later be tweaked and applied
to the PWM device with pwm_apply_state(). This is a convenient function
that first retrieves the current PWM state and the replaces the period
with the reference values defined in pwm->args.
Once the function returns, you can adjust the ->enabled and ->duty_cycle
fields according to your needs before calling pwm_apply_state().
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/led')
0 files changed, 0 insertions, 0 deletions