media: ipu-bridge: add mod_devicetable.h header inclusion

Message ID 20240510062747.3422256-1-bingbu.cao@intel.com (mailing list archive)
State New
Headers
Series media: ipu-bridge: add mod_devicetable.h header inclusion |

Commit Message

Cao, Bingbu May 10, 2024, 6:27 a.m. UTC
  From: Bingbu Cao <bingbu.cao@intel.com>

ACPI_ID_LEN is defined in mod_devicetable.h, so the header should
be guaranteed to included in ipu-bridge.h instead of the source
files which include ipu-bridge.h.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
---
 include/media/ipu-bridge.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Andy Shevchenko May 10, 2024, 3:07 p.m. UTC | #1
On Fri, May 10, 2024 at 02:27:47PM +0800, bingbu.cao@intel.com wrote:
> From: Bingbu Cao <bingbu.cao@intel.com>
> 
> ACPI_ID_LEN is defined in mod_devicetable.h, so the header should
> be guaranteed to included in ipu-bridge.h instead of the source
> files which include ipu-bridge.h.

Right,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  

Patch

diff --git a/include/media/ipu-bridge.h b/include/media/ipu-bridge.h
index 783bda6d5cc3..16fac765456e 100644
--- a/include/media/ipu-bridge.h
+++ b/include/media/ipu-bridge.h
@@ -3,6 +3,7 @@ 
 #ifndef __IPU_BRIDGE_H
 #define __IPU_BRIDGE_H
 
+#include <linux/mod_devicetable.h>
 #include <linux/property.h>
 #include <linux/types.h>
 #include <media/v4l2-fwnode.h>