diff options
author | Boris Brezillon <[email protected]> | 2016-06-14 11:13:09 +0200 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2016-07-08 17:52:18 +0200 |
commit | a6a0dbbcfa469cf3e5c4d9522106c0b7b9e9e373 (patch) | |
tree | ce43ebafbd0d41bd485b7d5751a3b02aee914ef4 /scripts/gdb/linux/modules.py | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) |
pwm: Add a helper to prepare a new PWM state
The pwm_init_state() helper prepares a new state object containing the
current PWM state except for the polarity and period fields which are
set to the reference values (those in struct pwm_args).
This is particularly useful for PWM users who want to apply a new duty-
cycle expressed relatively to the reference period without changing the
enable state.
Signed-off-by: Boris Brezillon <[email protected]>
Tested-by: Heiko Stuebner <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions