drivers/ft5x06: Remove wakeup and nreset check
Remove unused wakeup and nreset check of FT5X06. Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
dfc0053c2d
commit
7ffa06a78d
1 changed files with 2 additions and 5 deletions
|
|
@ -1084,12 +1084,9 @@ int ft5x06_register(FAR struct i2c_master_s *i2c,
|
|||
/* Debug-only sanity checks */
|
||||
|
||||
DEBUGASSERT(i2c != NULL && config != NULL && minor >= 0 && minor < 100);
|
||||
#ifdef CONFIG_FT5X06_POLLMODE
|
||||
DEBUGASSERT(config->wakeup != NULL && config->nreset != NULL);
|
||||
#else
|
||||
#ifndef CONFIG_FT5X06_POLLMODE
|
||||
DEBUGASSERT(config->attach != NULL && config->enable != NULL &&
|
||||
config->clear != NULL && config->wakeup != NULL &&
|
||||
config->nreset != NULL);
|
||||
config->clear != NULL);
|
||||
#endif
|
||||
|
||||
/* Create and initialize a FT5x06 device driver instance */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue