mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
drivers/input/touchscreen_upper: add missing function code comments
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -245,6 +245,10 @@ out:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: touch_ioctl
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
static int touch_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
static int touch_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||||
{
|
{
|
||||||
FAR struct inode *inode = filep->f_inode;
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: touch_poll
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
static int touch_poll(FAR struct file *filep, struct pollfd *fds, bool setup)
|
static int touch_poll(FAR struct file *filep, struct pollfd *fds, bool setup)
|
||||||
{
|
{
|
||||||
FAR struct touch_openpriv_s *openpriv = filep->f_priv;
|
FAR struct touch_openpriv_s *openpriv = filep->f_priv;
|
||||||
@@ -318,6 +326,10 @@ errout:
|
|||||||
* Public Function
|
* Public Function
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: touch_event
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
void touch_event(FAR void *priv, FAR const struct touch_sample_s *sample)
|
void touch_event(FAR void *priv, FAR const struct touch_sample_s *sample)
|
||||||
{
|
{
|
||||||
FAR struct touch_upperhalf_s *upper = priv;
|
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);
|
nxmutex_unlock(&upper->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: touch_register
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
int touch_register(FAR struct touch_lowerhalf_s *lower,
|
int touch_register(FAR struct touch_lowerhalf_s *lower,
|
||||||
FAR const char *path, uint8_t nums)
|
FAR const char *path, uint8_t nums)
|
||||||
{
|
{
|
||||||
@@ -384,6 +400,10 @@ int touch_register(FAR struct touch_lowerhalf_s *lower,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: touch_unregister
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
void touch_unregister(FAR struct touch_lowerhalf_s *lower,
|
void touch_unregister(FAR struct touch_lowerhalf_s *lower,
|
||||||
FAR const char *path)
|
FAR const char *path)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user