diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 15:19:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 15:19:57 -0500 |
commit | 972b2c719990f91eb3b2310d44ef8a2d38955a14 (patch) | |
tree | b25a250ec5bec4b7b6355d214642d8b57c5cab32 /drivers/hwmon | |
parent | 02550d61f49266930e674286379d3601006b2893 (diff) | |
parent | c3aa077648e147783a7a53b409578234647db853 (diff) |
Merge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
* 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (165 commits)
reiserfs: Properly display mount options in /proc/mounts
vfs: prevent remount read-only if pending removes
vfs: count unlinked inodes
vfs: protect remounting superblock read-only
vfs: keep list of mounts for each superblock
vfs: switch ->show_options() to struct dentry *
vfs: switch ->show_path() to struct dentry *
vfs: switch ->show_devname() to struct dentry *
vfs: switch ->show_stats to struct dentry *
switch security_path_chmod() to struct path *
vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
vfs: trim includes a bit
switch mnt_namespace ->root to struct mount
vfs: take /proc/*/mounts and friends to fs/proc_namespace.c
vfs: opencode mntget() mnt_set_mountpoint()
vfs: spread struct mount - remaining argument of next_mnt()
vfs: move fsnotify junk to struct mount
vfs: move mnt_devname
vfs: move mnt_list to struct mount
vfs: switch pnode.h macros to struct mount *
...
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/dme1737.c | 6 | ||||
-rw-r--r-- | drivers/hwmon/jc42.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/max1668.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/max6650.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/tmp421.c | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/drivers/hwmon/dme1737.c b/drivers/hwmon/dme1737.c index d9c592713919..d9803958e49f 100644 --- a/drivers/hwmon/dme1737.c +++ b/drivers/hwmon/dme1737.c | |||
@@ -1223,7 +1223,7 @@ static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, | |||
1223 | } | 1223 | } |
1224 | 1224 | ||
1225 | static struct attribute *dme1737_pwm_chmod_attr[]; | 1225 | static struct attribute *dme1737_pwm_chmod_attr[]; |
1226 | static void dme1737_chmod_file(struct device*, struct attribute*, mode_t); | 1226 | static void dme1737_chmod_file(struct device*, struct attribute*, umode_t); |
1227 | 1227 | ||
1228 | static ssize_t set_pwm(struct device *dev, struct device_attribute *attr, | 1228 | static ssize_t set_pwm(struct device *dev, struct device_attribute *attr, |
1229 | const char *buf, size_t count) | 1229 | const char *buf, size_t count) |
@@ -1961,7 +1961,7 @@ static inline void dme1737_sio_outb(int sio_cip, int reg, int val) | |||
1961 | static int dme1737_i2c_get_features(int, struct dme1737_data*); | 1961 | static int dme1737_i2c_get_features(int, struct dme1737_data*); |
1962 | 1962 | ||
1963 | static void dme1737_chmod_file(struct device *dev, | 1963 | static void dme1737_chmod_file(struct device *dev, |
1964 | struct attribute *attr, mode_t mode) | 1964 | struct attribute *attr, umode_t mode) |
1965 | { | 1965 | { |
1966 | if (sysfs_chmod_file(&dev->kobj, attr, mode)) { | 1966 | if (sysfs_chmod_file(&dev->kobj, attr, mode)) { |
1967 | dev_warn(dev, "Failed to change permissions of %s.\n", | 1967 | dev_warn(dev, "Failed to change permissions of %s.\n", |
@@ -1971,7 +1971,7 @@ static void dme1737_chmod_file(struct device *dev, | |||
1971 | 1971 | ||
1972 | static void dme1737_chmod_group(struct device *dev, | 1972 | static void dme1737_chmod_group(struct device *dev, |
1973 | const struct attribute_group *group, | 1973 | const struct attribute_group *group, |
1974 | mode_t mode) | 1974 | umode_t mode) |
1975 | { | 1975 | { |
1976 | struct attribute **attr; | 1976 | struct attribute **attr; |
1977 | 1977 | ||
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index 2d3d72805ff4..1a92951f4031 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c | |||
@@ -413,7 +413,7 @@ static struct attribute *jc42_attributes[] = { | |||
413 | NULL | 413 | NULL |
414 | }; | 414 | }; |
415 | 415 | ||
416 | static mode_t jc42_attribute_mode(struct kobject *kobj, | 416 | static umode_t jc42_attribute_mode(struct kobject *kobj, |
417 | struct attribute *attr, int index) | 417 | struct attribute *attr, int index) |
418 | { | 418 | { |
419 | struct device *dev = container_of(kobj, struct device, kobj); | 419 | struct device *dev = container_of(kobj, struct device, kobj); |
diff --git a/drivers/hwmon/max1668.c b/drivers/hwmon/max1668.c index 20d1b2ddffb6..6914195cfd35 100644 --- a/drivers/hwmon/max1668.c +++ b/drivers/hwmon/max1668.c | |||
@@ -335,10 +335,10 @@ static struct attribute *max1668_attribute_unique[] = { | |||
335 | NULL | 335 | NULL |
336 | }; | 336 | }; |
337 | 337 | ||
338 | static mode_t max1668_attribute_mode(struct kobject *kobj, | 338 | static umode_t max1668_attribute_mode(struct kobject *kobj, |
339 | struct attribute *attr, int index) | 339 | struct attribute *attr, int index) |
340 | { | 340 | { |
341 | int ret = S_IRUGO; | 341 | umode_t ret = S_IRUGO; |
342 | if (read_only) | 342 | if (read_only) |
343 | return ret; | 343 | return ret; |
344 | if (attr == &sensor_dev_attr_temp1_max.dev_attr.attr || | 344 | if (attr == &sensor_dev_attr_temp1_max.dev_attr.attr || |
diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c index ece3aafa54b3..2fc034aeca09 100644 --- a/drivers/hwmon/max6650.c +++ b/drivers/hwmon/max6650.c | |||
@@ -464,7 +464,7 @@ static SENSOR_DEVICE_ATTR(gpio1_alarm, S_IRUGO, get_alarm, NULL, | |||
464 | static SENSOR_DEVICE_ATTR(gpio2_alarm, S_IRUGO, get_alarm, NULL, | 464 | static SENSOR_DEVICE_ATTR(gpio2_alarm, S_IRUGO, get_alarm, NULL, |
465 | MAX6650_ALRM_GPIO2); | 465 | MAX6650_ALRM_GPIO2); |
466 | 466 | ||
467 | static mode_t max6650_attrs_visible(struct kobject *kobj, struct attribute *a, | 467 | static umode_t max6650_attrs_visible(struct kobject *kobj, struct attribute *a, |
468 | int n) | 468 | int n) |
469 | { | 469 | { |
470 | struct device *dev = container_of(kobj, struct device, kobj); | 470 | struct device *dev = container_of(kobj, struct device, kobj); |
diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c index 0517a8f09d35..c48381f2cd02 100644 --- a/drivers/hwmon/tmp421.c +++ b/drivers/hwmon/tmp421.c | |||
@@ -157,7 +157,7 @@ static ssize_t show_fault(struct device *dev, | |||
157 | return sprintf(buf, "0\n"); | 157 | return sprintf(buf, "0\n"); |
158 | } | 158 | } |
159 | 159 | ||
160 | static mode_t tmp421_is_visible(struct kobject *kobj, struct attribute *a, | 160 | static umode_t tmp421_is_visible(struct kobject *kobj, struct attribute *a, |
161 | int n) | 161 | int n) |
162 | { | 162 | { |
163 | struct device *dev = container_of(kobj, struct device, kobj); | 163 | struct device *dev = container_of(kobj, struct device, kobj); |