Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a2fbc17 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Input: atmel_mxt_ts - correct sysfs permissions"

parents 7ca91e2f f1319ed1
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -2121,15 +2121,17 @@ static ssize_t mxt_secure_touch_show(struct device *dev,
	return scnprintf(buf, PAGE_SIZE, "%u", val);
}

static DEVICE_ATTR(secure_touch_enable, 0666, mxt_secure_touch_enable_show,
static DEVICE_ATTR(secure_touch_enable, S_IRUGO | S_IWUSR | S_IWGRP ,
			 mxt_secure_touch_enable_show,
			 mxt_secure_touch_enable_store);
static DEVICE_ATTR(secure_touch, 0444, mxt_secure_touch_show, NULL);
static DEVICE_ATTR(secure_touch, S_IRUGO, mxt_secure_touch_show, NULL);
#endif

static DEVICE_ATTR(object, 0444, mxt_object_show, NULL);
static DEVICE_ATTR(update_fw, 0664, NULL, mxt_update_fw_store);
static DEVICE_ATTR(force_cfg_update, 0664, NULL, mxt_force_cfg_update_store);
static DEVICE_ATTR(update_object_byte, 0664, NULL,
static DEVICE_ATTR(object, S_IRUGO, mxt_object_show, NULL);
static DEVICE_ATTR(update_fw, S_IWUSR | S_IWGRP , NULL, mxt_update_fw_store);
static DEVICE_ATTR(force_cfg_update, S_IWUSR | S_IWGRP ,
			 NULL, mxt_force_cfg_update_store);
static DEVICE_ATTR(update_object_byte, S_IWUSR | S_IWGRP, NULL,
					mxt_update_single_byte_store);

static struct attribute *mxt_attrs[] = {