]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
coresight: cti: Replace inclusion by struct fwnode_handle forward declaration
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 31 Mar 2025 07:14:53 +0000 (10:14 +0300)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 8 May 2025 13:31:15 +0000 (14:31 +0100)
The fwnode.h is not supposed to be used by the drivers as it
has the definitions for the core parts for different device
property provider implementations. Drop it.

Since the code wants to use the pointer to the struct fwnode_handle
the forward declaration is provided.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250331071453.3987013-1-andriy.shevchenko@linux.intel.com
drivers/hwtracing/coresight/coresight-cti.h

index 16e310e7e9d48a205847de924aafd5bbc0d449bc..8362a47c939c60399d7f2f3f599f72de4983a6e1 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <linux/coresight.h>
 #include <linux/device.h>
-#include <linux/fwnode.h>
 #include <linux/list.h>
 #include <linux/spinlock.h>
 #include <linux/sysfs.h>
@@ -17,6 +16,8 @@
 
 #include "coresight-priv.h"
 
+struct fwnode_handle;
+
 /*
  * Device registers
  * 0x000 - 0x144: CTI programming and status