mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
scsi: core: host template attribute groups
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. Signed-off-by: Stanislav Nijnikov <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
2238d31cde
commit
86b87cde0b
2 changed files with 17 additions and 0 deletions
|
|
@ -476,6 +476,12 @@ struct scsi_host_template {
|
|||
*/
|
||||
struct device_attribute **sdev_attrs;
|
||||
|
||||
/*
|
||||
* Pointer to the SCSI device attribute groups for this host,
|
||||
* NULL terminated.
|
||||
*/
|
||||
const struct attribute_group **sdev_groups;
|
||||
|
||||
/*
|
||||
* List of hosts per template.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue