Remove all references to the now non-existent boardctl(BOARD_TSCTEST_TEARDOWN).

This commit is contained in:
Gregory Nutt 2018-01-16 18:01:56 -06:00
parent 15bb9839ae
commit 673845eba0
3 changed files with 5 additions and 12 deletions

View File

@ -1993,10 +1993,9 @@ examples/touchscreen
This example code will call boardctl() to setup the touchscreen driver
for texting. The implementation of boardctl() will require that board-
specific logic provide the following interfaces that will be called by
the boardctl() in order to initialize and uninitialize the touchscreen hardware:
the boardctl() in order to initialize the touchscreen hardware:
int board_tsc_setup(int minor);
void board_tsc_teardown(void);
examples/uavcan
^^^^^^^^^^^^^^^

View File

@ -61,9 +61,8 @@ config EXAMPLES_TOUCHSCREEN_ARCHINIT
mouse is disconnected.
So, in cases like this, there are two options: (1) provide dummy
board_tsc_setup() and board_tsc_teardown() just to satisfy the
linking requirements of boardctl() or, (2) de-select this option.
If this option is de-selected, then the boardctl() will never be
called.
board_tsc_setup() just to satisfy the linking requirements of
boardctl() or, (2) de-select this option. If this option is de-
selected, then the boardctl() will never be called.
endif

View File

@ -149,7 +149,7 @@ int tc_main(int argc, char *argv[])
printf("tc_main: open %s failed: %d\n",
CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH, errno);
errval = 2;
goto errout_with_tc;
goto errout;
}
/* Now loop the appropriate number of times, displaying the collected
@ -259,12 +259,7 @@ int tc_main(int argc, char *argv[])
errout_with_dev:
close(fd);
errout_with_tc:
#ifdef CONFIG_EXAMPLES_TOUCHSCREEN_ARCHINIT
boardctl(BOARDIOC_TSCTEST_TEARDOWN, 0);
errout:
#endif
printf("Terminating!\n");
fflush(stdout);
return errval;