Skip to content

Commit

Permalink
Bluetooth: Fix 'enable_hs' type
Browse files Browse the repository at this point in the history
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: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
Fabio Estevam authored and Johan Hedberg committed Feb 13, 2012
1 parent a3d4e20 commit 8b281b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/net/bluetooth/hci.h
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,6 @@ struct hci_inquiry_req {
};
#define IREQ_CACHE_FLUSH 0x0001

extern int enable_hs;
extern bool enable_hs;

#endif /* __HCI_H */
2 changes: 1 addition & 1 deletion net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8b281b9

Please sign in to comment.