Re: [PATCH v5 08/11] scsi: host template attribute groups

2018-02-06 Thread Bart Van Assche
On Tue, 2018-02-06 at 18:06 +0200, Stanislav Nijnikov wrote: > + if (sdev->host->hostt->sdev_groups) { > + error = sysfs_create_groups(>sdev_gendev.kobj, > + sdev->host->hostt->sdev_groups); > + if (error) > +

Re: [PATCH v5 08/11] scsi: host template attribute groups

2018-02-06 Thread Bart Van Assche
On Tue, 2018-02-06 at 18:06 +0200, Stanislav Nijnikov wrote: > + if (sdev->host->hostt->sdev_groups) { > + error = sysfs_create_groups(>sdev_gendev.kobj, > + sdev->host->hostt->sdev_groups); > + if (error) > +

[PATCH v5 08/11] scsi: host template attribute groups

2018-02-06 Thread Stanislav Nijnikov
The patch introduces an additional field in the scsi_host_template structure - struct attribute_group **sdev_group. This field allows to define groups of attributes. It will provide an ability to use binary attributes as well as device attributes and to group them under subfolders if necessary.

[PATCH v5 08/11] scsi: host template attribute groups

2018-02-06 Thread Stanislav Nijnikov
The patch introduces an additional field in the scsi_host_template structure - struct attribute_group **sdev_group. This field allows to define groups of attributes. It will provide an ability to use binary attributes as well as device attributes and to group them under subfolders if necessary.