diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-07 21:27:36 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-16 21:40:57 -0400 |
| commit | 5152a5098c6b0b2341982987918ae10eb4cc3f9c (patch) | |
| tree | cb93a8556646526380b3114ecfca642cdca0b5d7 /drivers/ipack | |
| parent | fb3fed7926545e44ce36574e1b1c5cdeb018db5c (diff) | |
ipack: convert bus code to use dev_groups
The dev_attrs field of struct bus_type is going away soon, dev_groups
should be used instead. This converts the ipack bus code to use the
correct field.
Acked-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Cc: Jens Taprogge <jens.taprogge@taprogge.org>
Cc: <industrypack-devel@lists.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ipack')
| -rw-r--r-- | drivers/ipack/ipack.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/drivers/ipack/ipack.c b/drivers/ipack/ipack.c index 6e066c53acce..d0016ba469ed 100644 --- a/drivers/ipack/ipack.c +++ b/drivers/ipack/ipack.c | |||
| @@ -180,20 +180,28 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, | |||
| 180 | 180 | ||
| 181 | ipack_device_attr(id_format, "0x%hhu\n"); | 181 | ipack_device_attr(id_format, "0x%hhu\n"); |
| 182 | 182 | ||
| 183 | static struct device_attribute ipack_dev_attrs[] = { | 183 | static DEVICE_ATTR_RO(id); |
| 184 | __ATTR_RO(id), | 184 | static DEVICE_ATTR_RO(id_device); |
| 185 | __ATTR_RO(id_device), | 185 | static DEVICE_ATTR_RO(id_format); |
| 186 | __ATTR_RO(id_format), | 186 | static DEVICE_ATTR_RO(id_vendor); |
| 187 | __ATTR_RO(id_vendor), | 187 | static DEVICE_ATTR_RO(modalias); |
| 188 | __ATTR_RO(modalias), | 188 | |
| 189 | static struct attribute *ipack_attrs[] = { | ||
| 190 | &dev_attr_id.attr, | ||
| 191 | &dev_attr_id_device.attr, | ||
| 192 | &dev_attr_id_format.attr, | ||
| 193 | &dev_attr_id_vendor.attr, | ||
| 194 | &dev_attr_modalias.attr, | ||
| 195 | NULL, | ||
| 189 | }; | 196 | }; |
| 197 | ATTRIBUTE_GROUPS(ipack); | ||
| 190 | 198 | ||
| 191 | static struct bus_type ipack_bus_type = { | 199 | static struct bus_type ipack_bus_type = { |
| 192 | .name = "ipack", | 200 | .name = "ipack", |
| 193 | .probe = ipack_bus_probe, | 201 | .probe = ipack_bus_probe, |
| 194 | .match = ipack_bus_match, | 202 | .match = ipack_bus_match, |
| 195 | .remove = ipack_bus_remove, | 203 | .remove = ipack_bus_remove, |
| 196 | .dev_attrs = ipack_dev_attrs, | 204 | .dev_groups = ipack_groups, |
| 197 | .uevent = ipack_uevent, | 205 | .uevent = ipack_uevent, |
| 198 | }; | 206 | }; |
| 199 | 207 | ||
