RE: [PATCH 2/4] drivers: hv: use ATTRIBUTE_GROUPS helper
From: Michael Kelley
Date: Thu Apr 02 2026 - 22:59:15 EST
From: Thomas Weißschuh <linux@xxxxxxxxxxxxxx> Sent: Thursday, April 2, 2026 8:18 AM
>
> The current logic is equivalent to the helper.
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> ---
> drivers/hv/vmbus_drv.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
> index 5f9b7cc9080c..d41b39ab628d 100644
> --- a/drivers/hv/vmbus_drv.c
> +++ b/drivers/hv/vmbus_drv.c
> @@ -645,10 +645,7 @@ static struct attribute *vmbus_bus_attrs[] = {
> &bus_attr_hibernation.attr,
> NULL,
> };
> -static const struct attribute_group vmbus_bus_group = {
> - .attrs = vmbus_bus_attrs,
> -};
> -__ATTRIBUTE_GROUPS(vmbus_bus);
> +ATTRIBUTE_GROUPS(vmbus_bus);
>
> /*
> * vmbus_uevent - add uevent for our device
>
> --
> 2.53.0
>
Reviewed-by: Michael Kelley <mhklinux@xxxxxxxxxxx>