projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47d1e6a
)
scsi: isci: Switch to attribute groups
author
Bart Van Assche
<bvanassche@acm.org>
Tue, 12 Oct 2021 23:35:38 +0000
(16:35 -0700)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Sun, 17 Oct 2021 01:45:56 +0000
(21:45 -0400)
struct device supports attribute groups directly but does not support
struct device_attribute directly. Hence switch to attribute groups.
Link:
https://lore.kernel.org/r/20211012233558.4066756-27-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/isci/init.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/isci/init.c
b/drivers/scsi/isci/init.c
index
ffd33e5
..
aade707
100644
(file)
--- a/
drivers/scsi/isci/init.c
+++ b/
drivers/scsi/isci/init.c
@@
-142,11
+142,13
@@
static ssize_t isci_show_id(struct device *dev, struct device_attribute *attr, c
static DEVICE_ATTR(isci_id, S_IRUGO, isci_show_id, NULL);
-static struct
device_
attribute *isci_host_attrs[] = {
- &dev_attr_isci_id,
+static struct attribute *isci_host_attrs[] = {
+ &dev_attr_isci_id
.attr
,
NULL
};
+ATTRIBUTE_GROUPS(isci_host);
+
static struct scsi_host_template isci_sht = {
.module = THIS_MODULE,
@@
-173,7
+175,7
@@
static struct scsi_host_template isci_sht = {
#ifdef CONFIG_COMPAT
.compat_ioctl = sas_ioctl,
#endif
- .shost_
attrs = isci_host_attr
s,
+ .shost_
groups = isci_host_group
s,
.track_queue_depth = 1,
};