lkml.org 
[lkml]   [2022]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 4/9] pwm: lpss: Include headers we are direct user of
Date
For the sake of integrity, include headers we are direct user of.

While at it, replace device.h with a forward declaration and add
missed struct pwm_lpss_boardinfo one.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pwm/pwm-lpss.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/pwm/pwm-lpss.h b/drivers/pwm/pwm-lpss.h
index c344921b2cab..839622964b2a 100644
--- a/drivers/pwm/pwm-lpss.h
+++ b/drivers/pwm/pwm-lpss.h
@@ -10,11 +10,15 @@
#ifndef __PWM_LPSS_H
#define __PWM_LPSS_H

-#include <linux/device.h>
#include <linux/pwm.h>
+#include <linux/types.h>

#define MAX_PWMS 4

+struct device;
+
+struct pwm_lpss_boardinfo;
+
struct pwm_lpss_chip {
struct pwm_chip chip;
void __iomem *regs;
--
2.35.1
\
 
 \ /
  Last update: 2022-09-08 15:58    [W:0.215 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site