mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
switch ->is_visible() to returning umode_t
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
9104e427f3
commit
587a1f1659
33 changed files with 70 additions and 70 deletions
|
|
@ -176,13 +176,13 @@ static struct device_attribute power_supply_attrs[] = {
|
|||
static struct attribute *
|
||||
__power_supply_attrs[ARRAY_SIZE(power_supply_attrs) + 1];
|
||||
|
||||
static mode_t power_supply_attr_is_visible(struct kobject *kobj,
|
||||
static umode_t power_supply_attr_is_visible(struct kobject *kobj,
|
||||
struct attribute *attr,
|
||||
int attrno)
|
||||
{
|
||||
struct device *dev = container_of(kobj, struct device, kobj);
|
||||
struct power_supply *psy = dev_get_drvdata(dev);
|
||||
mode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
|
||||
umode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
|
||||
int i;
|
||||
|
||||
if (attrno == POWER_SUPPLY_PROP_TYPE)
|
||||
|
|
|
|||
Loading…
Reference in a new issue