]> git.baikalelectronics.ru Git - kernel.git/commit
mm/dmapool: use DEVICE_ATTR_RO macro
authorYueHaibing <yuehaibing@huawei.com>
Tue, 29 Jun 2021 02:40:05 +0000 (19:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2021 17:53:52 +0000 (10:53 -0700)
commit0f0eb1912e6344c2ce7c38ca2685c403549f65e4
treecc3818c3ec29e0dd64d86cdb6f357a639d7952c0
parentd68d97412891849dfb737a18e7932f0581e8f639
mm/dmapool: use DEVICE_ATTR_RO macro

Use DEVICE_ATTR_RO() helper instead of plain DEVICE_ATTR(), which makes
the code a bit shorter and easier to read.

Link: https://lkml.kernel.org/r/20210524112852.34716-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/dmapool.c