drivers/input/touchscreen_upper: add missing function code comments

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
pengyiqiang 2022-12-01 00:47:59 +08:00 committed by Xiang Xiao
parent 12b0fa9ec3
commit c4535ee66a
1 changed files with 20 additions and 0 deletions

View File

@ -245,6 +245,10 @@ out:
return ret;
}
/****************************************************************************
* Name: touch_ioctl
****************************************************************************/
static int touch_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
FAR struct inode *inode = filep->f_inode;
@ -271,6 +275,10 @@ static int touch_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
return ret;
}
/****************************************************************************
* Name: touch_poll
****************************************************************************/
static int touch_poll(FAR struct file *filep, struct pollfd *fds, bool setup)
{
FAR struct touch_openpriv_s *openpriv = filep->f_priv;
@ -318,6 +326,10 @@ errout:
* Public Function
****************************************************************************/
/****************************************************************************
* Name: touch_event
****************************************************************************/
void touch_event(FAR void *priv, FAR const struct touch_sample_s *sample)
{
FAR struct touch_upperhalf_s *upper = priv;
@ -346,6 +358,10 @@ void touch_event(FAR void *priv, FAR const struct touch_sample_s *sample)
nxmutex_unlock(&upper->lock);
}
/****************************************************************************
* Name: touch_register
****************************************************************************/
int touch_register(FAR struct touch_lowerhalf_s *lower,
FAR const char *path, uint8_t nums)
{
@ -384,6 +400,10 @@ int touch_register(FAR struct touch_lowerhalf_s *lower,
return ret;
}
/****************************************************************************
* Name: touch_unregister
****************************************************************************/
void touch_unregister(FAR struct touch_lowerhalf_s *lower,
FAR const char *path)
{