software/drivers/sd8887/src/bluetooth/bt/bt_main.c
/**
 *  @brief This function queries the wrapper device
 *
 *  @param m_dev   A pointer to m_dev structure
 *  @param arg     arguement
 *
 *  @return    BT_STATUS_SUCCESS  or other
 */
@brief This function queries the wrapper device
@param m_dev   A pointer to m_dev structure
@param arg     arguement

@return    BT_STATUS_SUCCESS  or other
@brief This function queries the wrapper device @param m_dev A pointer to m_dev structure @param arg arguement @return BT_STATUS_SUCCESS or other
void
mdev_query(struct m_dev *m_dev, void *arg)
{
	struct mbt_dev *mbt_dev = (struct mbt_dev *)m_dev->dev_pointer;
	ENTER();
	if (copy_to_user(arg, &mbt_dev->type, sizeof(mbt_dev->type)))
		PRINTM(ERROR, "IOCTL_QUERY_TYPE: Fail copy to user\n");
	LEAVE();
}
void mdev_query ( struct m_dev * m_dev , void * arg ) { struct mbt_dev * mbt_dev = ( struct mbt_dev * ) m_dev -> dev_pointer ; ENTER ( ) ; if ( copy_to_user ( arg , & mbt_dev -> type , sizeof ( mbt_dev -> type ) ) ) PRINTM ( ERROR , " \n " ) ; LEAVE ( ) ; }
@brief This function queries the wrapper device
  @param m_dev   A pointer to m_dev structure
  @param arg     arguement
@brief This function queries the wrapper device @param m_dev A pointer to m_dev structure @param arg arguement