diff options
author | Uwe Kleine-König <uwe@kleine-koenig.org> | 2020-12-07 14:45:54 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2021-03-22 12:18:54 +0100 |
commit | fc423f29f718a963a2775edba8ac258e762ea989 (patch) | |
tree | d7d84dea8d1fa661a4ba568e51347f19664ee8b1 /drivers/pwm/pwm-atmel-hlcdc.c | |
parent | 9f0f6107e07289c99f599d4e4ad9c62dec4abfd6 (diff) |
pwm: bcm-kona: Use pwmchip_add() instead of pwmchip_add_with_polarity()
The only side effect of this change is that pwm->state.polarity is
initialized to PWM_POLARITY_NORMAL instead of PWM_POLARITY_INVERSED.
However all other members of pwm->state are uninitialized and consumers
are expected to provide the right polarity (either by setting it explicitly
or by using a helper like pwm_init_state() that overwrites .polarity
anyhow with a value independent of the initial value).
The eventual goal is to remove pwmchip_add_with_polarity() and so simplify
the data flow in the PWM core.
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-atmel-hlcdc.c')
0 files changed, 0 insertions, 0 deletions