PNP: use DEVICE_ATTR_RO macro
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Jun 2021 08:15:46 +0000 (16:15 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Jun 2021 14:24:14 +0000 (16:24 +0200)
commit3935787ebd5f4117d39c6fda6d73ecfdb747349f
tree4a8f2b80f0a064f6b87820b825c90fccba0e69f9
parent5bb5ceac1275cbbe757d9eecbd4b8c8a4f403c32
PNP: use DEVICE_ATTR_RO macro

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

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pnp/card.c