diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-14 03:25:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-14 03:25:43 -0400 |
commit | 4b4bb99b6246007eccbc0731eae0b6742c24efa5 (patch) | |
tree | c81d34499eb1e89101741395ef345be43d6a7c71 /drivers/pwm/pwm-lpss-platform.c | |
parent | 9bca19a01d50143b736f0f59eb3ccc05b1106172 (diff) | |
parent | 414c52b7899aa9097c2fa8444654a866e1df4a0c (diff) |
Merge tag 'pwm/for-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
Pull pwm updates from Thierry Reding:
"This contains a couple of fixes and cleanups for the Meson and
ACPI/LPSS drivers as well as capture support for STM32.
Note that given the cross- subsystem changes, the STM32 patches were
merged through the MFD and PWM trees, both sharing an immutable
branch"
* tag 'pwm/for-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
pwm: stm32: Fix build warning with CONFIG_DMA_ENGINE disabled
pwm: stm32: Enforce dependency on CONFIG_MFD_STM32_TIMERS
ACPI / LPSS: Add missing prv_offset setting for byt/cht PWM devices
pwm: lpss: platform: Save/restore the ctrl register over a suspend/resume
dt-bindings: mfd: stm32-timers: Add support for dmas
pwm: simplify getting .drvdata
pwm: meson: Fix allocation of PWM channel array
Diffstat (limited to 'drivers/pwm/pwm-lpss-platform.c')
-rw-r--r-- | drivers/pwm/pwm-lpss-platform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-lpss-platform.c b/drivers/pwm/pwm-lpss-platform.c index 5d6ed1507d29..5561b9e190f8 100644 --- a/drivers/pwm/pwm-lpss-platform.c +++ b/drivers/pwm/pwm-lpss-platform.c | |||
@@ -74,6 +74,10 @@ static int pwm_lpss_remove_platform(struct platform_device *pdev) | |||
74 | return pwm_lpss_remove(lpwm); | 74 | return pwm_lpss_remove(lpwm); |
75 | } | 75 | } |
76 | 76 | ||
77 | static SIMPLE_DEV_PM_OPS(pwm_lpss_platform_pm_ops, | ||
78 | pwm_lpss_suspend, | ||
79 | pwm_lpss_resume); | ||
80 | |||
77 | static const struct acpi_device_id pwm_lpss_acpi_match[] = { | 81 | static const struct acpi_device_id pwm_lpss_acpi_match[] = { |
78 | { "80860F09", (unsigned long)&pwm_lpss_byt_info }, | 82 | { "80860F09", (unsigned long)&pwm_lpss_byt_info }, |
79 | { "80862288", (unsigned long)&pwm_lpss_bsw_info }, | 83 | { "80862288", (unsigned long)&pwm_lpss_bsw_info }, |
@@ -86,6 +90,7 @@ static struct platform_driver pwm_lpss_driver_platform = { | |||
86 | .driver = { | 90 | .driver = { |
87 | .name = "pwm-lpss", | 91 | .name = "pwm-lpss", |
88 | .acpi_match_table = pwm_lpss_acpi_match, | 92 | .acpi_match_table = pwm_lpss_acpi_match, |
93 | .pm = &pwm_lpss_platform_pm_ops, | ||
89 | }, | 94 | }, |
90 | .probe = pwm_lpss_probe_platform, | 95 | .probe = pwm_lpss_probe_platform, |
91 | .remove = pwm_lpss_remove_platform, | 96 | .remove = pwm_lpss_remove_platform, |