From: Ganesh Mahendran Date: Sat, 13 Dec 2014 00:57:13 +0000 (-0800) Subject: zram: use DEVICE_ATTR_[RW|RO|WO] to define zram sys device attribute X-Git-Tag: omap-for-v3.19/fixes-rc1~100^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=083914eab96fabddfc715f0436e082eb375c5704;p=pandora-kernel.git zram: use DEVICE_ATTR_[RW|RO|WO] to define zram sys device attribute In current zram, we use DEVICE_ATTR() to define sys device attributes. SO, we need to set (S_IRUGO | S_IWUSR) permission and other arguments manually. Linux already provids the macro DEVICE_ATTR_[RW|RO|WO] to define sys device attribute. It is simple and readable. This patch uses kernel defined macro DEVICE_ATTR_[RW|RO|WO] to define zram device attribute. Signed-off-by: Ganesh Mahendran Acked-by: Jerome Marchand Cc: Minchan Kim Cc: Nitin Gupta Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed