[PATCH 02/27] Bluetooth: hci_sysfs: Make device_find_child()'s match function take a const pointer

Zijun Hu posted 27 patches 1 year, 6 months ago
[PATCH 02/27] Bluetooth: hci_sysfs: Make device_find_child()'s match function take a const pointer
Posted by Zijun Hu 1 year, 6 months ago
From: Zijun Hu <quic_zijuhu@quicinc.com>

In order to adapt for constified device_find_child(), make __match_tty()
as its match function take a const pointer.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
---
 net/bluetooth/hci_sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index 367e32fe30eb..36642813d2db 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -26,7 +26,7 @@ static const struct device_type bt_link = {
  * is down, and sysfs doesn't support move zombie device,
  * so we should move the device before conn device is destroyed.
  */
-static int __match_tty(struct device *dev, void *data)
+static int __match_tty(struct device *dev, const void *data)
 {
 	return !strncmp(dev_name(dev), "rfcomm", 6);
 }

-- 
2.34.1