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:
Konstantin Makariev 2021-04-27 13:14:16 -05:00 • committed by Konstantin Makariev
commit 2107f02e1c

View file

@ -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)