touchscreen.h: move the #ifdef CONFIG_INPUT position
the application can access the remote cpu touch driver by
rpmsgdev, so the defines and struct will be used even if not
enable the CONFIG_INPUT/CONFIG_INPUT_TOUCHSCREEN.
#include <nuttx/semaphore.h>
#include <time.h>
-#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
