diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2006-07-12 01:40:29 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-31 01:55:05 -0400 |
commit | 018a3d1db7cdb6127656c1622ee1d2302e16436d (patch) | |
tree | 5b6714fa9fcd1441f7c1b30e0391484c095925b6 /arch/powerpc/platforms/powermac/backlight.c | |
parent | eeb2b723ef5100fafa381d92eb70d83e98516a44 (diff) |
[POWERPC] powermac: Constify & voidify get_property()
Now that get_property() returns a void *, there's no need to cast its
return value. Also, treat the return value as const, so we can
constify get_property later.
powermac platform & macintosh driver changes.
Built for pmac32_defconfig, g5_defconfig
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/powermac/backlight.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/backlight.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powermac/backlight.c b/arch/powerpc/platforms/powermac/backlight.c index 69f65e215a5c..205b4a392862 100644 --- a/arch/powerpc/platforms/powermac/backlight.c +++ b/arch/powerpc/platforms/powermac/backlight.c | |||
@@ -38,7 +38,8 @@ int pmac_has_backlight_type(const char *type) | |||
38 | struct device_node* bk_node = find_devices("backlight"); | 38 | struct device_node* bk_node = find_devices("backlight"); |
39 | 39 | ||
40 | if (bk_node) { | 40 | if (bk_node) { |
41 | char *prop = get_property(bk_node, "backlight-control", NULL); | 41 | const char *prop = get_property(bk_node, |
42 | "backlight-control", NULL); | ||
42 | if (prop && strncmp(prop, type, strlen(type)) == 0) | 43 | if (prop && strncmp(prop, type, strlen(type)) == 0) |
43 | return 1; | 44 | return 1; |
44 | } | 45 | } |