summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-lpss.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-10-12 12:12:26 +0200
committerThierry Reding <thierry.reding@gmail.com>2018-10-12 12:31:01 +0200
commit9dc419b6c7e4bb67c0966758c1e4c9a9c9a4309d (patch)
tree25514e4ff65a58bababed218d30770048f9b46a0 /drivers/pwm/pwm-lpss.h
parentpwm: lpss: Add ACPI HID for second PWM controller on Cherry Trail devices (diff)
downloadlinux-9dc419b6c7e4bb67c0966758c1e4c9a9c9a4309d.tar.xz
linux-9dc419b6c7e4bb67c0966758c1e4c9a9c9a4309d.zip
pwm: lpss: Move struct pwm_lpss_chip definition to the header file
Move struct pwm_lpss_chip definition from pwm-lpss.c to pwm-lpss.h, so that the pci/platform drivers can access the info member (struct pwm_lpss_boardinfo *). This is a preparation patch for adding platform specific quirks, which the drivers need access to, to pwm_lpss_boardinfo. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-lpss.h')
-rw-r--r--drivers/pwm/pwm-lpss.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-lpss.h b/drivers/pwm/pwm-lpss.h
index 7a4238ad1fcb..8f029ed263af 100644
--- a/drivers/pwm/pwm-lpss.h
+++ b/drivers/pwm/pwm-lpss.h
@@ -16,7 +16,14 @@
#include <linux/device.h>
#include <linux/pwm.h>
-struct pwm_lpss_chip;
+#define MAX_PWMS 4
+
+struct pwm_lpss_chip {
+ struct pwm_chip chip;
+ void __iomem *regs;
+ const struct pwm_lpss_boardinfo *info;
+ u32 saved_ctrl[MAX_PWMS];
+};
struct pwm_lpss_boardinfo {
unsigned long clk_rate;