mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
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:
committed by
Alan C. Assis
parent
dfc0053c2d
commit
7ffa06a78d
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user