Skip to content

Commit aad548a

Browse files
andy-shevSuzuki K Poulose
authored andcommitted
coresight: cti: Replace inclusion by struct fwnode_handle forward declaration
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 <[email protected]> Reviewed-by: James Clark <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 798f589 commit aad548a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/hwtracing/coresight/coresight-cti.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99

1010
#include <linux/coresight.h>
1111
#include <linux/device.h>
12-
#include <linux/fwnode.h>
1312
#include <linux/list.h>
1413
#include <linux/spinlock.h>
1514
#include <linux/sysfs.h>
1615
#include <linux/types.h>
1716

1817
#include "coresight-priv.h"
1918

19+
struct fwnode_handle;
20+
2021
/*
2122
* Device registers
2223
* 0x000 - 0x144: CTI programming and status

0 commit comments

Comments
 (0)