Re: [PATCH v2 45/46] scsi: usb: Switch to attribute groups

Bart Van Assche
2021-10-08T20:19:52Z

On 10/7/21 10:39 PM, Greg Kroah-Hartman wrote:
> On Thu, Oct 07, 2021 at 02:18:51PM -0700, Bart Van Assche wrote:
>> +static const struct attribute_group usb_sdev_attr_group = {
>> + .attrs = usb_sdev_attrs
>> +};
>> +
>> +static const struct attribute_group *usb_sdev_attr_groups[] = {
>> + &usb_sdev_attr_group,
>> + NULL
>> +};
>
> ATTRIBUTE_GROUPS()?

Hi Greg,

I will use ATTRIBUTE_GROUPS() in all patches in this series where that
macro can be used.

Thanks,

Bart.