Ganesh Mahendran 083914eab9 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 <opensource.ganesh@gmail.com>
Acked-by: Jerome Marchand <jmarchan@redhat.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-12-13 12:42:50 -08:00
..
2014-12-09 14:48:22 -08:00
2014-12-11 11:58:50 -08:00
2014-12-11 13:06:58 -08:00
2014-12-08 20:02:54 -08:00
2014-12-08 20:00:44 +01:00
2014-12-11 13:06:58 -08:00
2014-12-11 17:48:14 -08:00
2014-12-02 22:49:11 +01:00
2014-12-11 13:06:58 -08:00
2014-12-11 18:15:33 -08:00
2014-12-09 14:38:28 -08:00
2014-12-08 20:42:41 -08:00
2014-12-04 16:57:36 +01:00
2014-12-09 14:48:22 -08:00
2014-12-11 13:06:58 -08:00
2014-12-11 18:15:33 -08:00