Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b281b9c authored by Fabio Estevam's avatar Fabio Estevam Committed by Johan Hedberg
Browse files

Bluetooth: Fix 'enable_hs' type



Fix the following build warning:

  CC [M]  net/bluetooth/hci_core.o
net/bluetooth/hci_core.c: In function ‘__check_enable_hs’:
net/bluetooth/hci_core.c:2587: warning: return from incompatible pointer type

module_param in hci_core.c passes 'enable_hs' as bool format, so fix
this variable definition type.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent a3d4e20a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1415,6 +1415,6 @@ struct hci_inquiry_req {
};
#define IREQ_CACHE_FLUSH 0x0001

extern int enable_hs;
extern bool enable_hs;

#endif /* __HCI_H */
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@

#define AUTO_OFF_TIMEOUT 2000

int enable_hs;
bool enable_hs;

static void hci_rx_work(struct work_struct *work);
static void hci_cmd_work(struct work_struct *work);