ALSA: control_led - use DEVICE_ATTR_*() macro
authorYueHaibing <yuehaibing@huawei.com>
Sun, 23 May 2021 07:11:09 +0000 (15:11 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 May 2021 08:31:59 +0000 (10:31 +0200)
commit08e767cd9e8b6682cfc4fba630ec2e46f13e99e0
treea343efb66a0119f738e58a7ae7cc0cd8bfead856
parente1dc219af7ebc600486482c6d06242a1a11a2e33
ALSA: control_led - use DEVICE_ATTR_*() macro

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

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210523071109.28940-1-yuehaibing@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control_led.c