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

Commit 51a0318e authored by Kyle Piefer's avatar Kyle Piefer Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Use proper permissions for read-only files



If a sysfs file is read-only and does not have a store
function, the file permissions should not include writing.
This fixes a kernel warning when creating the file.

Change-Id: I0afd2033fce68e1e1d3df96f6d73ae27d01bea3f
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent b2bdf7dc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -31,7 +31,7 @@ struct adreno_sysfs_attribute adreno_attr_##_name = { \

#define _ADRENO_SYSFS_ATTR_RO(_name, __show) \
struct adreno_sysfs_attribute adreno_attr_##_name = { \
	.attr = __ATTR(_name, 0644, __show, NULL), \
	.attr = __ATTR(_name, 0444, __show, NULL), \
	.show = _ ## _name ## _show, \
	.store = NULL, \
}