mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
bos0614: access to sysfs for others
Need to allow group others to access driver interfaces in sysfs Change-Id: Ic83b07674ee5396abc58aae3cf21ddf883c3196b Signed-off-by: Konstantin Makariev <hcv867@motorola.com> Reviewed-on: https://gerrit.mot.com/1934267 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ling Jin <lingjin@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
2873bd469d
commit
2107f02e1c
1 changed files with 3 additions and 3 deletions
|
|
@ -115,7 +115,7 @@ static ssize_t getChipId(struct device *dev,
|
|||
return snprintf(buf, PAGE_SIZE, "0x%x\n", chipId);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(chip_id, 0440, getChipId, NULL);
|
||||
static DEVICE_ATTR(chip_id, 0444, getChipId, NULL);
|
||||
|
||||
static ssize_t getRegsDump(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
|
|
@ -149,7 +149,7 @@ static ssize_t getRegsDump(struct device *dev,
|
|||
return blen;
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(regs, 0440, getRegsDump, NULL);
|
||||
static DEVICE_ATTR(regs, 0444, getRegsDump, NULL);
|
||||
|
||||
static bool hasError(BosError *errors, size_t length, BosError errorType)
|
||||
{
|
||||
|
|
@ -208,7 +208,7 @@ static ssize_t getIcErrors(struct device *dev,
|
|||
return res;
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(ic_errors, 0440, getIcErrors, NULL);
|
||||
static DEVICE_ATTR(ic_errors, 0444, getIcErrors, NULL);
|
||||
|
||||
static ssize_t getIcSensingState(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
|
|
|
|||
Loading…
Reference in a new issue