diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2013-05-27 08:33:05 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-06-03 04:42:31 -0400 |
commit | f583662347c62d80ac916658ae491274621c88ca (patch) | |
tree | 6d31d1dce9cc9a309cce546b3a0ba55201110fe0 /drivers/video | |
parent | 0dd99f1bfc8a3661f095c00f9f86f5bafbd4fdff (diff) |
video: display_timing: make parameter const
As the device_node pointer is not changed in of_get_display_timing and
parse_timing_property it can be a const pointer.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/of_display_timing.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c index 56009bc02b02..85c1a419270f 100644 --- a/drivers/video/of_display_timing.c +++ b/drivers/video/of_display_timing.c | |||
@@ -23,7 +23,7 @@ | |||
23 | * Every display_timing can be specified with either just the typical value or | 23 | * Every display_timing can be specified with either just the typical value or |
24 | * a range consisting of min/typ/max. This function helps handling this | 24 | * a range consisting of min/typ/max. This function helps handling this |
25 | **/ | 25 | **/ |
26 | static int parse_timing_property(struct device_node *np, const char *name, | 26 | static int parse_timing_property(const struct device_node *np, const char *name, |
27 | struct timing_entry *result) | 27 | struct timing_entry *result) |
28 | { | 28 | { |
29 | struct property *prop; | 29 | struct property *prop; |
@@ -56,7 +56,8 @@ static int parse_timing_property(struct device_node *np, const char *name, | |||
56 | * of_get_display_timing - parse display_timing entry from device_node | 56 | * of_get_display_timing - parse display_timing entry from device_node |
57 | * @np: device_node with the properties | 57 | * @np: device_node with the properties |
58 | **/ | 58 | **/ |
59 | static struct display_timing *of_get_display_timing(struct device_node *np) | 59 | static struct display_timing *of_get_display_timing(const struct device_node |
60 | *np) | ||
60 | { | 61 | { |
61 | struct display_timing *dt; | 62 | struct display_timing *dt; |
62 | u32 val = 0; | 63 | u32 val = 0; |