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>
Change-Id: Iac5653eab68e551391537d6b5c2a18004a8023fe
This commit is contained in:
zhangguoliang
2021-09-22 08:23:03 +00:00
parent 0e53d0b6ec
commit 888ea2ae84
-2
View File
@@ -69,7 +69,6 @@ struct batio_operate_msg_s
};
};
#if defined(CONFIG_I2C_BQ2429X)
enum batio_operate_e
{
BATIO_OPRTN_NOP = 0,
@@ -83,6 +82,5 @@ enum batio_operate_e
BATIO_OPRTN_WDOG,
BATIO_OPRTN_END
};
#endif
#endif /* __INCLUDE_NUTTX_POWER_BATTERY_IOCTL_H */