diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-18 15:04:51 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-19 09:24:27 -0400 |
commit | babdbb3c130bf8b6e58811a9cf4764eb68004d25 (patch) | |
tree | bc57d27da91e723e931f68fac9c620e787e3d7d2 /net/bluetooth/hci_sysfs.c | |
parent | 0d5551f5e40c30ed8a6c1fc6bc6ea6aa96438324 (diff) |
Bluetooth: Move export of class of device information into hci_core.c
The class of device debugfs information should be directly exported
from hci_core.c and so move them over there.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_sysfs.c')
-rw-r--r-- | net/bluetooth/hci_sysfs.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index acc6a2a6f4a3..95fc5bb09d95 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c | |||
@@ -193,14 +193,6 @@ static ssize_t show_name(struct device *dev, | |||
193 | return sprintf(buf, "%s\n", name); | 193 | return sprintf(buf, "%s\n", name); |
194 | } | 194 | } |
195 | 195 | ||
196 | static ssize_t show_class(struct device *dev, | ||
197 | struct device_attribute *attr, char *buf) | ||
198 | { | ||
199 | struct hci_dev *hdev = to_hci_dev(dev); | ||
200 | return sprintf(buf, "0x%.2x%.2x%.2x\n", hdev->dev_class[2], | ||
201 | hdev->dev_class[1], hdev->dev_class[0]); | ||
202 | } | ||
203 | |||
204 | static ssize_t show_address(struct device *dev, | 196 | static ssize_t show_address(struct device *dev, |
205 | struct device_attribute *attr, char *buf) | 197 | struct device_attribute *attr, char *buf) |
206 | { | 198 | { |
@@ -211,14 +203,12 @@ static ssize_t show_address(struct device *dev, | |||
211 | static DEVICE_ATTR(bus, S_IRUGO, show_bus, NULL); | 203 | static DEVICE_ATTR(bus, S_IRUGO, show_bus, NULL); |
212 | static DEVICE_ATTR(type, S_IRUGO, show_type, NULL); | 204 | static DEVICE_ATTR(type, S_IRUGO, show_type, NULL); |
213 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); | 205 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); |
214 | static DEVICE_ATTR(class, S_IRUGO, show_class, NULL); | ||
215 | static DEVICE_ATTR(address, S_IRUGO, show_address, NULL); | 206 | static DEVICE_ATTR(address, S_IRUGO, show_address, NULL); |
216 | 207 | ||
217 | static struct attribute *bt_host_attrs[] = { | 208 | static struct attribute *bt_host_attrs[] = { |
218 | &dev_attr_bus.attr, | 209 | &dev_attr_bus.attr, |
219 | &dev_attr_type.attr, | 210 | &dev_attr_type.attr, |
220 | &dev_attr_name.attr, | 211 | &dev_attr_name.attr, |
221 | &dev_attr_class.attr, | ||
222 | &dev_attr_address.attr, | 212 | &dev_attr_address.attr, |
223 | NULL | 213 | NULL |
224 | }; | 214 | }; |