diff options
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 4 | ||||
-rw-r--r-- | drivers/platform/x86/asus_acpi.c | 4 | ||||
-rw-r--r-- | drivers/platform/x86/ideapad-laptop.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/intel_menlow.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 4 |
6 files changed, 9 insertions, 9 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index edaccad9b5bf..b7944f903886 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -1477,7 +1477,7 @@ static struct attribute *asus_attributes[] = { | |||
1477 | NULL | 1477 | NULL |
1478 | }; | 1478 | }; |
1479 | 1479 | ||
1480 | static mode_t asus_sysfs_is_visible(struct kobject *kobj, | 1480 | static umode_t asus_sysfs_is_visible(struct kobject *kobj, |
1481 | struct attribute *attr, | 1481 | struct attribute *attr, |
1482 | int idx) | 1482 | int idx) |
1483 | { | 1483 | { |
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index d1049ee3c9e8..72d731c21d45 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c | |||
@@ -992,7 +992,7 @@ static struct attribute *hwmon_attributes[] = { | |||
992 | NULL | 992 | NULL |
993 | }; | 993 | }; |
994 | 994 | ||
995 | static mode_t asus_hwmon_sysfs_is_visible(struct kobject *kobj, | 995 | static umode_t asus_hwmon_sysfs_is_visible(struct kobject *kobj, |
996 | struct attribute *attr, int idx) | 996 | struct attribute *attr, int idx) |
997 | { | 997 | { |
998 | struct device *dev = container_of(kobj, struct device, kobj); | 998 | struct device *dev = container_of(kobj, struct device, kobj); |
@@ -1357,7 +1357,7 @@ static struct attribute *platform_attributes[] = { | |||
1357 | NULL | 1357 | NULL |
1358 | }; | 1358 | }; |
1359 | 1359 | ||
1360 | static mode_t asus_sysfs_is_visible(struct kobject *kobj, | 1360 | static umode_t asus_sysfs_is_visible(struct kobject *kobj, |
1361 | struct attribute *attr, int idx) | 1361 | struct attribute *attr, int idx) |
1362 | { | 1362 | { |
1363 | struct device *dev = container_of(kobj, struct device, kobj); | 1363 | struct device *dev = container_of(kobj, struct device, kobj); |
diff --git a/drivers/platform/x86/asus_acpi.c b/drivers/platform/x86/asus_acpi.c index d9312b3073e5..6f966d6c062b 100644 --- a/drivers/platform/x86/asus_acpi.c +++ b/drivers/platform/x86/asus_acpi.c | |||
@@ -1053,7 +1053,7 @@ static const struct file_operations disp_proc_fops = { | |||
1053 | }; | 1053 | }; |
1054 | 1054 | ||
1055 | static int | 1055 | static int |
1056 | asus_proc_add(char *name, const struct file_operations *proc_fops, mode_t mode, | 1056 | asus_proc_add(char *name, const struct file_operations *proc_fops, umode_t mode, |
1057 | struct acpi_device *device) | 1057 | struct acpi_device *device) |
1058 | { | 1058 | { |
1059 | struct proc_dir_entry *proc; | 1059 | struct proc_dir_entry *proc; |
@@ -1072,7 +1072,7 @@ asus_proc_add(char *name, const struct file_operations *proc_fops, mode_t mode, | |||
1072 | static int asus_hotk_add_fs(struct acpi_device *device) | 1072 | static int asus_hotk_add_fs(struct acpi_device *device) |
1073 | { | 1073 | { |
1074 | struct proc_dir_entry *proc; | 1074 | struct proc_dir_entry *proc; |
1075 | mode_t mode; | 1075 | umode_t mode; |
1076 | 1076 | ||
1077 | if ((asus_uid == 0) && (asus_gid == 0)) { | 1077 | if ((asus_uid == 0) && (asus_gid == 0)) { |
1078 | mode = S_IFREG | S_IRUGO | S_IWUSR | S_IWGRP; | 1078 | mode = S_IFREG | S_IRUGO | S_IWUSR | S_IWGRP; |
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index a36addf106a0..ac902f7a9baa 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c | |||
@@ -368,7 +368,7 @@ static struct attribute *ideapad_attributes[] = { | |||
368 | NULL | 368 | NULL |
369 | }; | 369 | }; |
370 | 370 | ||
371 | static mode_t ideapad_is_visible(struct kobject *kobj, | 371 | static umode_t ideapad_is_visible(struct kobject *kobj, |
372 | struct attribute *attr, | 372 | struct attribute *attr, |
373 | int idx) | 373 | int idx) |
374 | { | 374 | { |
diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c index abddc83e9fd7..3271ac85115e 100644 --- a/drivers/platform/x86/intel_menlow.c +++ b/drivers/platform/x86/intel_menlow.c | |||
@@ -389,7 +389,7 @@ static ssize_t bios_enabled_show(struct device *dev, | |||
389 | return sprintf(buf, "%s\n", bios_enabled ? "enabled" : "disabled"); | 389 | return sprintf(buf, "%s\n", bios_enabled ? "enabled" : "disabled"); |
390 | } | 390 | } |
391 | 391 | ||
392 | static int intel_menlow_add_one_attribute(char *name, int mode, void *show, | 392 | static int intel_menlow_add_one_attribute(char *name, umode_t mode, void *show, |
393 | void *store, struct device *dev, | 393 | void *store, struct device *dev, |
394 | acpi_handle handle) | 394 | acpi_handle handle) |
395 | { | 395 | { |
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 7b828680b21d..455e1522253e 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -297,7 +297,7 @@ struct ibm_init_struct { | |||
297 | char param[32]; | 297 | char param[32]; |
298 | 298 | ||
299 | int (*init) (struct ibm_init_struct *); | 299 | int (*init) (struct ibm_init_struct *); |
300 | mode_t base_procfs_mode; | 300 | umode_t base_procfs_mode; |
301 | struct ibm_struct *data; | 301 | struct ibm_struct *data; |
302 | }; | 302 | }; |
303 | 303 | ||
@@ -8542,7 +8542,7 @@ static int __init ibm_init(struct ibm_init_struct *iibm) | |||
8542 | "%s installed\n", ibm->name); | 8542 | "%s installed\n", ibm->name); |
8543 | 8543 | ||
8544 | if (ibm->read) { | 8544 | if (ibm->read) { |
8545 | mode_t mode = iibm->base_procfs_mode; | 8545 | umode_t mode = iibm->base_procfs_mode; |
8546 | 8546 | ||
8547 | if (!mode) | 8547 | if (!mode) |
8548 | mode = S_IRUGO; | 8548 | mode = S_IRUGO; |