input: cyttsp-i2c: Change the permission of firmware sysfs entries
CRs-fixed: 302911
Signed-off-by: Praveena Pachipulusu <pveena@codeaurora.org>
diff --git a/drivers/input/touchscreen/cyttsp-i2c.c b/drivers/input/touchscreen/cyttsp-i2c.c
index f7f07ed..1deb2a3 100644
--- a/drivers/input/touchscreen/cyttsp-i2c.c
+++ b/drivers/input/touchscreen/cyttsp-i2c.c
@@ -196,7 +196,7 @@
return err;
}
-static DEVICE_ATTR(irq_enable, 0777, cyttsp_irq_status, cyttsp_irq_enable);
+static DEVICE_ATTR(irq_enable, 0664, cyttsp_irq_status, cyttsp_irq_enable);
static ssize_t cyttsp_fw_show(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -205,7 +205,7 @@
g_bl_data.appver_hi, g_bl_data.appver_lo);
}
-static DEVICE_ATTR(cyttsp_fw_ver, 0777, cyttsp_fw_show, NULL);
+static DEVICE_ATTR(cyttsp_fw_ver, 0664, cyttsp_fw_show, NULL);
/* firmware flashing block */
#define BLK_SIZE 16
@@ -848,7 +848,7 @@
return size;
}
-static DEVICE_ATTR(cyttsp_force_update_fw, 0777, cyttsp_update_fw_show,
+static DEVICE_ATTR(cyttsp_force_update_fw, 0664, cyttsp_update_fw_show,
cyttsp_force_update_fw_store);
static ssize_t cyttsp_update_fw_store(struct device *dev,
@@ -877,7 +877,7 @@
return size;
}
-static DEVICE_ATTR(cyttsp_update_fw, 0777, cyttsp_update_fw_show,
+static DEVICE_ATTR(cyttsp_update_fw, 0664, cyttsp_update_fw_show,
cyttsp_update_fw_store);
static ssize_t cyttsp_fw_name_show(struct device *dev,
@@ -903,7 +903,7 @@
return size;
}
-static DEVICE_ATTR(cyttsp_fw_name, 0777, cyttsp_fw_name_show,
+static DEVICE_ATTR(cyttsp_fw_name, 0664, cyttsp_fw_name_show,
cyttsp_fw_name_store);
/* The cyttsp_xy_worker function reads the XY coordinates and sends them to