Rename touchscreen ioctls for clarity

This commit is contained in:
TimJTi
2023-05-26 11:40:54 +01:00
committed by Xiang Xiao
parent a05e8fd9ff
commit c904b16cd9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1026,7 +1026,7 @@ static int tsc2007_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
switch (cmd)
{
case TSIOC_SETCALIB: /* arg: Pointer to int calibration value */
case TSIOC_SETXRCAL: /* arg: Pointer to int calibration value */
{
FAR int *ptr = (FAR int *)((uintptr_t)arg);
DEBUGASSERT(priv->config != NULL && ptr != NULL);
@@ -1034,7 +1034,7 @@ static int tsc2007_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
}
break;
case TSIOC_GETCALIB: /* arg: Pointer to int calibration value */
case TSIOC_GETXRCAL: /* arg: Pointer to int calibration value */
{
FAR int *ptr = (FAR int *)((uintptr_t)arg);
DEBUGASSERT(priv->config != NULL && ptr != NULL);