software/drivers/sd8887/src/bluetooth/bt/bt_proc.c
/**
 *  @brief This function handle generic proc file close
 *
 *  @param inode   A pointer to inode structure
 *  @param file    A pointer to file structure
 *  @return	BT_STATUS_SUCCESS
 */
@brief This function handle generic proc file close
@param inode   A pointer to inode structure
@param file    A pointer to file structure
@return     BT_STATUS_SUCCESS
@brief This function handle generic proc file close @param inode A pointer to inode structure @param file A pointer to file structure @return BT_STATUS_SUCCESS
static int
proc_close(struct inode *inode, struct file *file)
{
	struct proc_data *pdata = file->private_data;
	ENTER();
	if (pdata) {
		if (pdata->on_close != NULL)
			pdata->on_close(inode, file);
		kfree(pdata->rdbuf);
		kfree(pdata->wrbuf);
		kfree(pdata);
	}
	LEAVE();
	return BT_STATUS_SUCCESS;
}
static int proc_close ( struct inode * inode , struct file * file ) { struct proc_data * pdata = file -> private_data ; ENTER ( ) ; if ( pdata ) { if ( pdata -> on_close != NULL ) pdata -> on_close ( inode , file ) ; kfree ( pdata -> rdbuf ) ; kfree ( pdata -> wrbuf ) ; kfree ( pdata ) ; } LEAVE ( ) ; return BT_STATUS_SUCCESS ; }
@brief This function handle generic proc file close
  @param inode   A pointer to inode structure
  @param file    A pointer to file structure
  @return     BT_STATUS_SUCCESS
@brief This function handle generic proc file close @param inode A pointer to inode structure @param file A pointer to file structure @return BT_STATUS_SUCCESS