Fix: Sensor: Fix the use of ioexpander and delete redundant member of opt3006.

N/A

Add pull up when using SETDIRECTION; Using transformation replace pinset;
Delete i2c point in opt3006 device struct.

Signed-off-by: yangjiukui <yangjiukui@xiaomi.com>
Change-Id: I7e46d0cde878fbca325f89be47c57ff9b9456ff0
This commit is contained in:
yangjiukui 2021-07-09 18:51:56 +08:00
parent fc3920904e
commit eafc254e14
2 changed files with 4 additions and 7 deletions

View file

@ -46,7 +46,6 @@ struct opt3006_config_s
int pin; /* Interrupt pin */
FAR struct i2c_master_s *i2c; /* I2C interface */
FAR struct ioexpander_dev_s *ioedev; /* Ioexpander device */
uint32_t pinset; /* Interrupt pin set */
};
/****************************************************************************