switch ->is_visible() to returning umode_t

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2011-07-23 23:11:19 -04:00
parent 9104e427f3
commit 587a1f1659
33 changed files with 70 additions and 70 deletions
+2 -2
View File
@@ -335,10 +335,10 @@ static struct attribute *max1668_attribute_unique[] = {
NULL
};
static mode_t max1668_attribute_mode(struct kobject *kobj,
static umode_t max1668_attribute_mode(struct kobject *kobj,
struct attribute *attr, int index)
{
int ret = S_IRUGO;
umode_t ret = S_IRUGO;
if (read_only)
return ret;
if (attr == &sensor_dev_attr_temp1_max.dev_attr.attr ||