nxwm: Elimint BOARDIOC_TSCTEST_SETUP.

This commit is contained in:
Gregory Nutt 2018-01-17 09:32:05 -06:00
parent ac52348e79
commit de7d74a153
2 changed files with 0 additions and 29 deletions

15
Kconfig
View File

@ -736,21 +736,6 @@ if NXWM_TOUCHSCREEN
comment "Touchscreen Device Settings"
config NXWM_TOUCHSCREEN_DEVINIT
bool "Touchscreen Device Initialization"
default y
depends on !BUILD_PROTECTED && !BUILD_KERNEL
---help---
It this option is selected, then the NxWM:CTouchscreen listener
thread will call a function boardctl() in order to instantiate the
touchscreen driver at path NXWM_TOUCHSCREEN_DEVPATH. If
NXWM_TOUCHSCREEN_DEVINIT is not selected, then the NxWM:CTouchscreen
listener thread will assume that the driver has already been
initialized at NXWM_TOUCHSCREEN_DEVPATH.
NOTE that in the kernel build, all touchscreen initialize must be
performed in kernel logic prior to the execution of NxWM.
config NXWM_TOUCHSCREEN_DEVNO
int "Touchscreen Device Number"
default 0

View File

@ -43,7 +43,6 @@
#include <cerrno>
#include <cfcntl>
#include <sys/boardctl.h>
#include <sys/prctl.h>
#include <sched.h>
@ -285,19 +284,6 @@ FAR void *CTouchscreen::listener(FAR void *arg)
_info("Listener started\n");
#ifdef CONFIG_NXWM_TOUCHSCREEN_DEVINIT
// Initialize the touchscreen device
int ret = boardctl(BOARDIOC_TSCTEST_SETUP, CONFIG_NXWM_TOUCHSCREEN_DEVNO);
if (ret < 0)
{
gerr("ERROR Failed initialize the touchscreen device: %d\n", errno);
This->m_state = LISTENER_FAILED;
sem_post(&This->m_waitSem);
return (FAR void *)0;
}
#endif
// Open the touchscreen device that we just created.
This->m_touchFd = std::open(CONFIG_NXWM_TOUCHSCREEN_DEVPATH, O_RDONLY);