forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pwm: Add PWM polarity flag macro for DT
Define a PWM_POLARITY_INVERTED macro in include/dt-bindings/pwm/pwm.h to be used by device tree sources. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
- Loading branch information
1 parent
cfb9e4c
commit 9344dad
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* This header provides constants for most PWM bindings. | ||
* | ||
* Most PWM bindings can include a flags cell as part of the PWM specifier. | ||
* In most cases, the format of the flags cell uses the standard values | ||
* defined in this header. | ||
*/ | ||
|
||
#ifndef _DT_BINDINGS_PWM_PWM_H | ||
#define _DT_BINDINGS_PWM_PWM_H | ||
|
||
#define PWM_POLARITY_INVERTED (1 << 0) | ||
|
||
#endif |