This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 12b2b7c  fix: charger: change the operations of battery ioctl to common
12b2b7c is described below

commit 12b2b7c24056b2c0617b6068ffbf46ea53acd472
Author: zhangguoliang <zhangguolia...@xiaomi.com>
AuthorDate: Wed Sep 22 08:23:03 2021 +0000

    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 <zhangguolia...@xiaomi.com>
---
 include/nuttx/power/battery_ioctl.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/nuttx/power/battery_ioctl.h 
b/include/nuttx/power/battery_ioctl.h
index 298aa2b..df08456 100644
--- a/include/nuttx/power/battery_ioctl.h
+++ b/include/nuttx/power/battery_ioctl.h
@@ -120,7 +120,6 @@ struct batio_operate_msg_s
   };
 };
 
-#if defined(CONFIG_I2C_BQ2429X)
 enum batio_operate_e
 {
   BATIO_OPRTN_NOP = 0,
@@ -134,6 +133,5 @@ enum batio_operate_e
   BATIO_OPRTN_WDOG,
   BATIO_OPRTN_END
 };
-#endif
 
 #endif /* __INCLUDE_NUTTX_POWER_BATTERY_IOCTL_H */

Reply via email to