diff --git a/include/nuttx/input/touchscreen.h b/include/nuttx/input/touchscreen.h index f353139bbd..7116147064 100644 --- a/include/nuttx/input/touchscreen.h +++ b/include/nuttx/input/touchscreen.h @@ -40,8 +40,6 @@ #include #include -#ifdef CONFIG_INPUT - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -150,6 +148,8 @@ struct touch_sample_s #define SIZEOF_TOUCH_SAMPLE_S(n) \ (sizeof(struct touch_sample_s) + ((n) - 1) * sizeof(struct touch_point_s)) +#ifdef CONFIG_INPUT_TOUCHSCREEN + /* This structure is for touchscreen lower half driver */ struct touch_lowerhalf_s