diff options
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/ad7877.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/tsc2005.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c index 400131df677b..baa43df6502d 100644 --- a/drivers/input/touchscreen/ad7877.c +++ b/drivers/input/touchscreen/ad7877.c | |||
@@ -612,10 +612,10 @@ static struct attribute *ad7877_attributes[] = { | |||
612 | NULL | 612 | NULL |
613 | }; | 613 | }; |
614 | 614 | ||
615 | static mode_t ad7877_attr_is_visible(struct kobject *kobj, | 615 | static umode_t ad7877_attr_is_visible(struct kobject *kobj, |
616 | struct attribute *attr, int n) | 616 | struct attribute *attr, int n) |
617 | { | 617 | { |
618 | mode_t mode = attr->mode; | 618 | umode_t mode = attr->mode; |
619 | 619 | ||
620 | if (attr == &dev_attr_aux3.attr) { | 620 | if (attr == &dev_attr_aux3.attr) { |
621 | if (gpio3) | 621 | if (gpio3) |
diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c index cbf0ff322676..067d95662997 100644 --- a/drivers/input/touchscreen/tsc2005.c +++ b/drivers/input/touchscreen/tsc2005.c | |||
@@ -450,13 +450,13 @@ static struct attribute *tsc2005_attrs[] = { | |||
450 | NULL | 450 | NULL |
451 | }; | 451 | }; |
452 | 452 | ||
453 | static mode_t tsc2005_attr_is_visible(struct kobject *kobj, | 453 | static umode_t tsc2005_attr_is_visible(struct kobject *kobj, |
454 | struct attribute *attr, int n) | 454 | struct attribute *attr, int n) |
455 | { | 455 | { |
456 | struct device *dev = container_of(kobj, struct device, kobj); | 456 | struct device *dev = container_of(kobj, struct device, kobj); |
457 | struct spi_device *spi = to_spi_device(dev); | 457 | struct spi_device *spi = to_spi_device(dev); |
458 | struct tsc2005 *ts = spi_get_drvdata(spi); | 458 | struct tsc2005 *ts = spi_get_drvdata(spi); |
459 | mode_t mode = attr->mode; | 459 | umode_t mode = attr->mode; |
460 | 460 | ||
461 | if (attr == &dev_attr_selftest.attr) { | 461 | if (attr == &dev_attr_selftest.attr) { |
462 | if (!ts->set_reset) | 462 | if (!ts->set_reset) |