/*******************************************************************************************
Function:       mhb_read
Description:   read /dev/motionhub
Data Accessed:  no
Data Updated:   no
Input:          struct file *file, char __user *buf, size_t count, loff_t *pos
Output:         no
Return:         length of read data
*******************************************************************************************/
static ssize_t mhb_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
{
#ifdef MHB_LOG_ON
    printk(KERN_INFO "ligang motionhub mhb_read \n");
#endif
    return inputhub_route_read(ROUTE_MOTION_PORT,buf, count);
}
/*******************************************************************************************
Function:       shb_read
Description:    定义/dev/sensorhub节点的读函数,从kernel的事件缓冲区中读数据
Data Accessed:  无
Data Updated:   无
Input:          struct file *file, char __user *buf, size_t count, loff_t *pos
Output:         无
Return:         实际读取数据的长度
*******************************************************************************************/
static ssize_t shb_read(struct file *file, char __user *buf, size_t count,
              loff_t *pos)
{
#ifdef LOG_SENSORHUB_CHANNEL
    hwlog_info( "shb_read \n");
#endif

    return inputhub_route_read(ROUTE_SHB_PORT,buf, count);
}