From 2107f02e1cb80282956101935d54502cd8da5956 Mon Sep 17 00:00:00 2001 From: Konstantin Makariev Date: Tue, 27 Apr 2021 13:14:16 -0500 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/1934267 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ling Jin Submit-Approved: Jira Key --- drivers/input/misc/bos0614_mmi/bosDriver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/bos0614_mmi/bosDriver.c b/drivers/input/misc/bos0614_mmi/bosDriver.c index 8b43d72ef6df..53b23ed87765 100644 --- a/drivers/input/misc/bos0614_mmi/bosDriver.c +++ b/drivers/input/misc/bos0614_mmi/bosDriver.c @@ -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)