diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-20 04:53:07 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2012-03-26 15:05:39 -0400 |
commit | bde9e5098c121cfca6d9c7e3a26e6ae44a3c9632 (patch) | |
tree | 0e0bf71649fb4e038f89d74542b03d77ab883c5b /drivers/platform/x86/samsung-laptop.c | |
parent | 82c333aaf4b2d6a83d9e8d6247584af8c18c4d7b (diff) |
samsung-laptop: cleanup return type: mode_t vs umode_t
This function returns a umode_t (unsigned short) instead of mode_t which
is an unsigned int on some architectures. Cleaning this up silences a
compile warning:
drivers/platform/x86/samsung-laptop.c:1108:2: warning: initialization
from incompatible pointer type [enabled by default]
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/samsung-laptop.c')
-rw-r--r-- | drivers/platform/x86/samsung-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c index d1142e317433..4787afdf11dc 100644 --- a/drivers/platform/x86/samsung-laptop.c +++ b/drivers/platform/x86/samsung-laptop.c | |||
@@ -1087,7 +1087,7 @@ static int __init samsung_backlight_init(struct samsung_laptop *samsung) | |||
1087 | return 0; | 1087 | return 0; |
1088 | } | 1088 | } |
1089 | 1089 | ||
1090 | static mode_t samsung_sysfs_is_visible(struct kobject *kobj, | 1090 | static umode_t samsung_sysfs_is_visible(struct kobject *kobj, |
1091 | struct attribute *attr, int idx) | 1091 | struct attribute *attr, int idx) |
1092 | { | 1092 | { |
1093 | struct device *dev = container_of(kobj, struct device, kobj); | 1093 | struct device *dev = container_of(kobj, struct device, kobj); |