software/drivers/sd8887/src/bluetooth/bt/mbt_char.c
/**
 *	@brief  Gets char device structure
 *
 *	@param dev		A pointer to char_dev
 *
 *	@return			kobject structure
 */
@brief  Gets char device structure
@param dev              A pointer to char_dev

@return                 kobject structure
@brief Gets char device structure @param dev A pointer to char_dev @return kobject structure
struct kobject *
chardev_get(struct char_dev *dev)
{
	struct kobject *kobj;
	kobj = bt_priv_get(dev->m_dev->driver_data);
	if (!kobj)
		return NULL;
	PRINTM(INFO, "dev get kobj\n");
	kobj = kobject_get(&dev->kobj);
	if (!kobj)
		bt_priv_put(dev->m_dev->driver_data);
	return kobj;
}
struct kobject * chardev_get ( struct char_dev * dev ) { struct kobject * kobj ; kobj = bt_priv_get ( dev -> m_dev -> driver_data ) ; if ( ! kobj ) return NULL ; PRINTM ( INFO , " \n " ) ; kobj = kobject_get ( & dev -> kobj ) ; if ( ! kobj ) bt_priv_put ( dev -> m_dev -> driver_data ) ; return kobj ; }
@brief  Gets char device structure
      @param dev              A pointer to char_dev
@brief Gets char device structure @param dev A pointer to char_dev