diff options
Diffstat (limited to 'lwis_device_i2c.h')
-rw-r--r-- | lwis_device_i2c.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lwis_device_i2c.h b/lwis_device_i2c.h index 1ae8294..393bd32 100644 --- a/lwis_device_i2c.h +++ b/lwis_device_i2c.h @@ -15,6 +15,7 @@ #include <linux/pinctrl/consumer.h> #include "lwis_device.h" +#include "lwis_i2c_bus_manager.h" #define MAX_I2C_LOCK_NUM 8 @@ -33,6 +34,9 @@ struct lwis_i2c_device { u32 i2c_lock_group_id; /* Mutex shared by the same group id's I2C devices */ struct mutex *group_i2c_lock; + /* Pointer to the I2C bus manager for this device */ + struct lwis_i2c_bus_manager *i2c_bus_manager; + int device_priority; }; int lwis_i2c_device_deinit(void); @@ -43,8 +47,7 @@ int lwis_i2c_device_deinit(void); * two APIs in stmvl53l1 driver to well handle the enabling and disabling. */ extern bool is_shared_i2c_with_stmvl53l1(struct pinctrl *pinctrl); -extern int shared_i2c_set_state(struct device *dev, struct pinctrl *pinctrl, - const char *state_str); +extern int shared_i2c_set_state(struct device *dev, struct pinctrl *pinctrl, const char *state_str); #endif #endif /* LWIS_DEVICE_I2C_H_ */ |