diff options
Diffstat (limited to 'include/linux/pwm.h')
| -rw-r--r-- | include/linux/pwm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 4717f54051cb..e90628cac8fa 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h | |||
| @@ -274,14 +274,18 @@ struct pwm_lookup { | |||
| 274 | unsigned int index; | 274 | unsigned int index; |
| 275 | const char *dev_id; | 275 | const char *dev_id; |
| 276 | const char *con_id; | 276 | const char *con_id; |
| 277 | unsigned int period; | ||
| 278 | enum pwm_polarity polarity; | ||
| 277 | }; | 279 | }; |
| 278 | 280 | ||
| 279 | #define PWM_LOOKUP(_provider, _index, _dev_id, _con_id) \ | 281 | #define PWM_LOOKUP(_provider, _index, _dev_id, _con_id, _period, _polarity) \ |
| 280 | { \ | 282 | { \ |
| 281 | .provider = _provider, \ | 283 | .provider = _provider, \ |
| 282 | .index = _index, \ | 284 | .index = _index, \ |
| 283 | .dev_id = _dev_id, \ | 285 | .dev_id = _dev_id, \ |
| 284 | .con_id = _con_id, \ | 286 | .con_id = _con_id, \ |
| 287 | .period = _period, \ | ||
| 288 | .polarity = _polarity \ | ||
| 285 | } | 289 | } |
| 286 | 290 | ||
| 287 | #if IS_ENABLED(CONFIG_PWM) | 291 | #if IS_ENABLED(CONFIG_PWM) |
