From 29762841d47a1f592ff1148dc2e3e74c6ba1e5ba Mon Sep 17 00:00:00 2001 From: "makarand.karvekar" Date: Fri, 7 Jan 2011 10:55:05 -0600 Subject: [PATCH] inpus: touchscreen: qtouch: Fix permissions on device attributes Change-Id: I7aa9004ee42375e0bd7cf4d79cc0ef4580918e70 Signed-off-by: makarand.karvekar --- drivers/input/touchscreen/qtouch_obp_ts.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/qtouch_obp_ts.c b/drivers/input/touchscreen/qtouch_obp_ts.c index 915471b53c4f..3d239e5bc586 100644 --- a/drivers/input/touchscreen/qtouch_obp_ts.c +++ b/drivers/input/touchscreen/qtouch_obp_ts.c @@ -118,7 +118,7 @@ static uint32_t qtouch_tsdebug; module_param_named(tsdebug, qtouch_tsdebug, uint, 0664); static uint32_t qtouch_disable_touch; -module_param_named(disable_touch, qtouch_disable_touch, uint, 0664); +module_param_named(disable_touch, qtouch_disable_touch, uint, 0644); static irqreturn_t qtouch_ts_irq_handler(int irq, void *dev_id) { @@ -1571,7 +1571,7 @@ static ssize_t qtouch_irq_enable(struct device *dev, return err; } -static DEVICE_ATTR(irq_enable, 0777, qtouch_irq_status, qtouch_irq_enable); +static DEVICE_ATTR(irq_enable, 0644, qtouch_irq_status, qtouch_irq_enable); static ssize_t qtouch_update_status(struct device *dev, struct device_attribute *attr, char *buf) @@ -1583,7 +1583,7 @@ static ssize_t qtouch_update_status(struct device *dev, return sprintf(buf, "%u\n", ts->status); } -static DEVICE_ATTR(update_status, 0777, qtouch_update_status, NULL); +static DEVICE_ATTR(update_status, 0644, qtouch_update_status, NULL); static ssize_t qtouch_fw_version(struct device *dev, struct device_attribute *attr, char *buf) @@ -1595,7 +1595,7 @@ static ssize_t qtouch_fw_version(struct device *dev, return sprintf(buf, "0x%X%X\n", ts->fw_version, ts->build_version); } -static DEVICE_ATTR(fw_version, 0777, qtouch_fw_version, NULL); +static DEVICE_ATTR(fw_version, 0644, qtouch_fw_version, NULL); static int qtouch_ts_probe(struct i2c_client *client, const struct i2c_device_id *id) -- 2.34.1