perf: xgene_pmu: use DEVICE_ATTR_RO macro
authorYueHaibing <yuehaibing@huawei.com>
Fri, 28 May 2021 01:49:40 +0000 (09:49 +0800)
committerWill Deacon <will@kernel.org>
Tue, 1 Jun 2021 13:23:46 +0000 (14:23 +0100)
commit21ad02e6b4c822d453faead4c96f0a86c4541b62
treeea72355684a94f22be35630e7f076552e55e9248
parentccbe14ce88289ede522318ef3205e46f8455bbf2
perf: xgene_pmu: 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.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20210528014940.4184-1-yuehaibing@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/xgene_pmu.c