]> 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)
commitbf155b3964debe647c20abe85427bd16b4811a39
treead242a3e591a28d64247e77df7abafc1e1a33306
parentff259b4d6fed4bd42e9279ce210ec985caf37e5b
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