software/drivers/sd8887/src/bluetooth/bt/bt_main.c
/**
 *  @brief This function opens the bluetooth device
 *
 *  @param hdev    A pointer to hci_dev structure
 *
 *  @return    BT_STATUS_SUCCESS  or other
 */
@brief This function opens the bluetooth device
@param hdev    A pointer to hci_dev structure

@return    BT_STATUS_SUCCESS  or other
@brief This function opens the bluetooth device @param hdev A pointer to hci_dev structure @return BT_STATUS_SUCCESS or other
static int
bt_open(struct hci_dev *hdev)
{
	ENTER();
	if (try_module_get(THIS_MODULE) == 0)
		return BT_STATUS_FAILURE;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(4, 3, 0)
	set_bit(HCI_RUNNING, &hdev->flags);
#endif
	LEAVE();
	return BT_STATUS_SUCCESS;
}
static int bt_open ( struct hci_dev * hdev ) { ENTER ( ) ; if ( try_module_get ( THIS_MODULE ) == 0 ) return BT_STATUS_FAILURE ; #if LINUX_VERSION_CODE <= KERNEL_VERSION ( 4 , 3 , 0 ) set_bit ( HCI_RUNNING , & hdev -> flags ) ; #endif LEAVE ( ) ; return BT_STATUS_SUCCESS ; }
@brief This function opens the bluetooth device
  @param hdev    A pointer to hci_dev structure
@brief This function opens the bluetooth device @param hdev A pointer to hci_dev structure