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. Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
parent
f8d33e40ac
commit
01c96a211f
@ -40,8 +40,6 @@
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user