diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2014-04-07 15:38:04 -0700 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-06-05 21:21:44 +0200 |
commit | 982f2c490dea7102fe7ac48df452756456c66812 (patch) | |
tree | 57096d695ae4f48fe826582fe879f8622a7f5d19 /include/media | |
parent | dcfa7aaac286aef92d38eb63205974285fc6464d (diff) | |
download | kernel_samsung_espresso10-982f2c490dea7102fe7ac48df452756456c66812.zip kernel_samsung_espresso10-982f2c490dea7102fe7ac48df452756456c66812.tar.gz kernel_samsung_espresso10-982f2c490dea7102fe7ac48df452756456c66812.tar.bz2 |
zram: remove zram stats code duplication
Introduce ZRAM_ATTR_RO macro that generates device_attribute and default
ATTR show() function for existing atomic64_t zram stats.
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions