diff options
author | Hans de Goede <hdegoede@redhat.com> | 2018-10-12 12:12:26 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2018-10-12 12:31:01 +0200 |
commit | 9dc419b6c7e4bb67c0966758c1e4c9a9c9a4309d (patch) | |
tree | 25514e4ff65a58bababed218d30770048f9b46a0 /drivers/pwm/pwm-lpss.c | |
parent | 1688c8717118f37191d824862a006c8373d261de (diff) | |
download | linux-9dc419b6c7e4bb67c0966758c1e4c9a9c9a4309d.tar.gz linux-9dc419b6c7e4bb67c0966758c1e4c9a9c9a4309d.tar.bz2 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.c')
-rw-r--r-- | drivers/pwm/pwm-lpss.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c index 4721a264bac2..e602835fd6de 100644 --- a/drivers/pwm/pwm-lpss.c +++ b/drivers/pwm/pwm-lpss.c @@ -32,15 +32,6 @@ /* Size of each PWM register space if multiple */ #define PWM_SIZE 0x400 -#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]; -}; - static inline struct pwm_lpss_chip *to_lpwm(struct pwm_chip *chip) { return container_of(chip, struct pwm_lpss_chip, chip); |