summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2017-06-05 14:15:06 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-09 11:45:24 +0200
commitf42fe520e449bda213f035478ddc9cf99e9082ac (patch)
treef3f89e45a2229ca2494f77a9c24b4cc9b4bf8507 /drivers
parent2cd541402829e7cc6621d2fc0ef329321559cb26 (diff)
downloadlinux-rpi3-f42fe520e449bda213f035478ddc9cf99e9082ac.tar.gz
linux-rpi3-f42fe520e449bda213f035478ddc9cf99e9082ac.tar.bz2
linux-rpi3-f42fe520e449bda213f035478ddc9cf99e9082ac.zip
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 'drivers')
-rw-r--r--drivers/hwtracing/coresight/of_coresight.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c
index 09142e99e915..2749853b9010 100644
--- a/drivers/hwtracing/coresight/of_coresight.c
+++ b/drivers/hwtracing/coresight/of_coresight.c
@@ -52,7 +52,7 @@ of_coresight_get_endpoint_device(struct device_node *endpoint)
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)
{
struct device_node *ep = NULL;
@@ -101,8 +101,9 @@ static int of_coresight_alloc_memory(struct device *dev,
return 0;
}
-struct coresight_platform_data *of_get_coresight_platform_data(
- struct device *dev, struct device_node *node)
+struct coresight_platform_data *
+of_get_coresight_platform_data(struct device *dev,
+ const struct device_node *node)
{
int i = 0, ret = 0, cpu;
struct coresight_platform_data *pdata;