mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
fix: charger: change the operations of battery ioctl to common
Almost all charger chip need the same oprations, which was not appropriate only for BQ2429X. Therefore, open the operations to all charger chips. Signed-off-by: zhangguoliang <zhangguoliang3@xiaomi.com>
This commit is contained in:
committed by
Abdelatif Guettouche
parent
2a6673bcdd
commit
12b2b7c240
@@ -120,7 +120,6 @@ struct batio_operate_msg_s
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(CONFIG_I2C_BQ2429X)
|
|
||||||
enum batio_operate_e
|
enum batio_operate_e
|
||||||
{
|
{
|
||||||
BATIO_OPRTN_NOP = 0,
|
BATIO_OPRTN_NOP = 0,
|
||||||
@@ -134,6 +133,5 @@ enum batio_operate_e
|
|||||||
BATIO_OPRTN_WDOG,
|
BATIO_OPRTN_WDOG,
|
||||||
BATIO_OPRTN_END
|
BATIO_OPRTN_END
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __INCLUDE_NUTTX_POWER_BATTERY_IOCTL_H */
|
#endif /* __INCLUDE_NUTTX_POWER_BATTERY_IOCTL_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user