Skip to content

Commit

Permalink
switch sysfs attr->mode to umode_t
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 2c9ede5 commit 9104e42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/platform/x86/intel_menlow.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ static ssize_t bios_enabled_show(struct device *dev,
return sprintf(buf, "%s\n", bios_enabled ? "enabled" : "disabled");
}

static int intel_menlow_add_one_attribute(char *name, int mode, void *show,
static int intel_menlow_add_one_attribute(char *name, umode_t mode, void *show,
void *store, struct device *dev,
acpi_handle handle)
{
Expand Down
2 changes: 1 addition & 1 deletion include/linux/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ enum kobj_ns_type;

struct attribute {
const char *name;
mode_t mode;
umode_t mode;
#ifdef CONFIG_DEBUG_LOCK_ALLOC
struct lock_class_key *key;
struct lock_class_key skey;
Expand Down

0 comments on commit 9104e42

Please sign in to comment.