Bluetooth: make hci_test_bit's addr const
[cascardo/linux.git] / net / bluetooth / hci_sock.c
index c73a61c..3f8f692 100644 (file)
@@ -46,9 +46,9 @@ struct hci_pinfo {
        unsigned short    channel;
 };
 
-static inline int hci_test_bit(int nr, void *addr)
+static inline int hci_test_bit(int nr, const void *addr)
 {
-       return *((__u32 *) addr + (nr >> 5)) & ((__u32) 1 << (nr & 31));
+       return *((const __u32 *) addr + (nr >> 5)) & ((__u32) 1 << (nr & 31));
 }
 
 /* Security filter */