Commit f42fe520 authored by Leo Yan's avatar Leo Yan Committed by Greg Kroah-Hartman

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: default avatarLeo Yan <leo.yan@linaro.org>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2cd54140
...@@ -52,7 +52,7 @@ of_coresight_get_endpoint_device(struct device_node *endpoint) ...@@ -52,7 +52,7 @@ of_coresight_get_endpoint_device(struct device_node *endpoint)
endpoint, of_dev_node_match); endpoint, of_dev_node_match);
} }
static void of_coresight_get_ports(struct device_node *node, static void of_coresight_get_ports(const struct device_node *node,
int *nr_inport, int *nr_outport) int *nr_inport, int *nr_outport)
{ {
struct device_node *ep = NULL; struct device_node *ep = NULL;
...@@ -101,8 +101,9 @@ static int of_coresight_alloc_memory(struct device *dev, ...@@ -101,8 +101,9 @@ static int of_coresight_alloc_memory(struct device *dev,
return 0; return 0;
} }
struct coresight_platform_data *of_get_coresight_platform_data( struct coresight_platform_data *
struct device *dev, struct device_node *node) of_get_coresight_platform_data(struct device *dev,
const struct device_node *node)
{ {
int i = 0, ret = 0, cpu; int i = 0, ret = 0, cpu;
struct coresight_platform_data *pdata; struct coresight_platform_data *pdata;
......
...@@ -263,11 +263,12 @@ static inline int coresight_timeout(void __iomem *addr, u32 offset, ...@@ -263,11 +263,12 @@ static inline int coresight_timeout(void __iomem *addr, u32 offset,
#endif #endif
#ifdef CONFIG_OF #ifdef CONFIG_OF
extern struct coresight_platform_data *of_get_coresight_platform_data( extern struct coresight_platform_data *
struct device *dev, struct device_node *node); of_get_coresight_platform_data(struct device *dev,
const struct device_node *node);
#else #else
static inline struct coresight_platform_data *of_get_coresight_platform_data( 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 #endif
#ifdef CONFIG_PID_NS #ifdef CONFIG_PID_NS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment