ALSA: pcm: use DEVICE_ATTR_RO macro
authorYueHaibing <yuehaibing@huawei.com>
Mon, 24 May 2021 12:00:07 +0000 (20:00 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 May 2021 07:00:04 +0000 (09:00 +0200)
commite1dc219af7ebc600486482c6d06242a1a11a2e33
treeeff8503a54bb882a07d6577924730231992ac070
parenta38e93302ee25b2ca6f4ee76c6c974cf3637985e
ALSA: pcm: 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/20210524120007.39728-1-yuehaibing@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c