From 9bd6c70339a82e680bbf4169c20ee568534fa810 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 18 Sep 2023 11:16:55 +0800 Subject: [PATCH] input/touchscreen: Bring up TSIOC_[SET|GET]CALIB macro which is removed accidently in: https://github.com/apache/nuttx/pull/9398 Signed-off-by: Xiang Xiao --- include/nuttx/input/touchscreen.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/nuttx/input/touchscreen.h b/include/nuttx/input/touchscreen.h index 3d6cabaf2bd..7a191bb943d 100644 --- a/include/nuttx/input/touchscreen.h +++ b/include/nuttx/input/touchscreen.h @@ -90,7 +90,12 @@ */ #define TSC_FIRST 0x0001 /* First common command */ -#define TSC_NCMDS 6 /* Six common commands */ +#define TSC_NCMDS 13 /* Thirteen common commands */ + +/* Backward compatible IOCTL */ + +#define TSIOC_SETCALIB TSIOC_SETXRCAL +#define TSIOC_GETCALIB TSIOC_GETXRCAL /* User defined ioctl commands are also supported. However, the * TSC driver must reserve a block of commands as follows in order