summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2017-06-05 23:15:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-09 12:45:24 +0300
commitf42fe520e449bda213f035478ddc9cf99e9082ac (patch)
treef3f89e45a2229ca2494f77a9c24b4cc9b4bf8507 /include
parent2cd541402829e7cc6621d2fc0ef329321559cb26 (diff)
downloadlinux-f42fe520e449bda213f035478ddc9cf99e9082ac.tar.xz
coresight: use const for device_node structures
Almost low level functions from open firmware have used const to qualify device_node structures, so add const for device_node parameters in of_coresight related functions. Signed-off-by: Leo Yan <leo.yan@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/coresight.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index 035c16c9a505..bf0aa50880be 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -263,11 +263,12 @@ static inline int coresight_timeout(void __iomem *addr, u32 offset,
#endif
#ifdef CONFIG_OF
-extern struct coresight_platform_data *of_get_coresight_platform_data(
- struct device *dev, struct device_node *node);
+extern struct coresight_platform_data *
+of_get_coresight_platform_data(struct device *dev,
+ const struct device_node *node);
#else
static inline struct coresight_platform_data *of_get_coresight_platform_data(
- struct device *dev, struct device_node *node) { return NULL; }
+ struct device *dev, const struct device_node *node) { return NULL; }
#endif
#ifdef CONFIG_PID_NS