Skip to content

Commit

Permalink
pwm.h: add phase to struct pwm_state again
Browse files Browse the repository at this point in the history
This was removed by the backport from upstream, which broke the ltc2387
and ad_pulsar drivers. Add it again, but include a comment clarifying
that it's only for backwards compatibility.

Signed-off-by: Trevor Gamblin <[email protected]>
  • Loading branch information
threexc committed Nov 11, 2024
1 parent 529c360 commit b10a8f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ struct pwm_waveform {
struct pwm_state {
u64 period;
u64 duty_cycle;
/*
* This is only for backwards compatibility in ltc2387.c and
* ad_pulsar.c. Newer drivers should use struct pwm_waveform
*/
u64 phase;
enum pwm_polarity polarity;
bool enabled;
bool usage_power;
Expand Down

0 comments on commit b10a8f8

Please sign in to comment.