]> git.baikalelectronics.ru Git - kernel.git/commit
xen: Use DEVICE_ATTR_*() macro
authorYueHaibing <yuehaibing@huawei.com>
Wed, 26 May 2021 14:10:19 +0000 (22:10 +0800)
committerJuergen Gross <jgross@suse.com>
Mon, 5 Jul 2021 07:23:31 +0000 (09:23 +0200)
commitd6c81f14c12150397c4b3c17e9397eb7977682d0
treead242a3e591a28d64247e77df7abafc1e1a33306
parent00b75b3c3f0be90bc470e6a7c2a896c151d7e944
xen: 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: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20210526141019.13752-1-yuehaibing@huawei.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/pcpu.c
drivers/xen/xen-balloon.c
drivers/xen/xenbus/xenbus_probe.c