diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/platform_data/pwm-renesas-tpu.h | 16 | ||||
| -rw-r--r-- | include/linux/pwm.h | 6 | ||||
| -rw-r--r-- | include/linux/pwm_backlight.h | 5 |
3 files changed, 6 insertions, 21 deletions
diff --git a/include/linux/platform_data/pwm-renesas-tpu.h b/include/linux/platform_data/pwm-renesas-tpu.h deleted file mode 100644 index a7220b10ddab..000000000000 --- a/include/linux/platform_data/pwm-renesas-tpu.h +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | #ifndef __PWM_RENESAS_TPU_H__ | ||
| 2 | #define __PWM_RENESAS_TPU_H__ | ||
| 3 | |||
| 4 | #include <linux/pwm.h> | ||
| 5 | |||
| 6 | #define TPU_CHANNEL_MAX 4 | ||
| 7 | |||
| 8 | struct tpu_pwm_channel_data { | ||
| 9 | enum pwm_polarity polarity; | ||
| 10 | }; | ||
| 11 | |||
| 12 | struct tpu_pwm_platform_data { | ||
| 13 | struct tpu_pwm_channel_data channels[TPU_CHANNEL_MAX]; | ||
| 14 | }; | ||
| 15 | |||
| 16 | #endif /* __PWM_RENESAS_TPU_H__ */ | ||
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) |
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h index 2de2e275b2cb..efdd9227a49c 100644 --- a/include/linux/pwm_backlight.h +++ b/include/linux/pwm_backlight.h | |||
| @@ -6,9 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | #include <linux/backlight.h> | 7 | #include <linux/backlight.h> |
| 8 | 8 | ||
| 9 | /* TODO: convert to gpiod_*() API once it has been merged */ | ||
| 10 | #define PWM_BACKLIGHT_GPIO_ACTIVE_LOW (1 << 0) | ||
| 11 | |||
| 12 | struct platform_pwm_backlight_data { | 9 | struct platform_pwm_backlight_data { |
| 13 | int pwm_id; | 10 | int pwm_id; |
| 14 | unsigned int max_brightness; | 11 | unsigned int max_brightness; |
| @@ -16,8 +13,8 @@ struct platform_pwm_backlight_data { | |||
| 16 | unsigned int lth_brightness; | 13 | unsigned int lth_brightness; |
| 17 | unsigned int pwm_period_ns; | 14 | unsigned int pwm_period_ns; |
| 18 | unsigned int *levels; | 15 | unsigned int *levels; |
| 16 | /* TODO remove once all users are switched to gpiod_* API */ | ||
| 19 | int enable_gpio; | 17 | int enable_gpio; |
| 20 | unsigned long enable_gpio_flags; | ||
| 21 | int (*init)(struct device *dev); | 18 | int (*init)(struct device *dev); |
| 22 | int (*notify)(struct device *dev, int brightness); | 19 | int (*notify)(struct device *dev, int brightness); |
| 23 | void (*notify_after)(struct device *dev, int brightness); | 20 | void (*notify_after)(struct device *dev, int brightness); |
