diff options
author | yihsiangpeng <yihsiangpeng@google.com> | 2022-10-05 17:06:22 +0800 |
---|---|---|
committer | Ken Yang <yangken@google.com> | 2022-10-20 14:59:53 +0000 |
commit | 140e901be9b78a85850162bea6c4144ed79f1f26 (patch) | |
tree | c3bc24c8bbde9f8dbff4c2c2f662d0ad7442b7d1 /p9221_charger.h | |
parent | 0da9a1007aa409e20c492a2edda64246c0e8539e (diff) | |
download | bms-140e901be9b78a85850162bea6c4144ed79f1f26.tar.gz |
p9221_charger: do not block when RTx attribute called
Add break condition to the work to avoid blocking the
return of device attribute
Bug: 251083472
Signed-off-by: yihsiangpeng <yihsiangpeng@google.com>
Change-Id: I894bc9ae96fd20edf645ed8417139526db8ecc19
Diffstat (limited to 'p9221_charger.h')
-rw-r--r-- | p9221_charger.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/p9221_charger.h b/p9221_charger.h index f5934ed..014f7f3 100644 --- a/p9221_charger.h +++ b/p9221_charger.h @@ -964,4 +964,6 @@ enum p9xxx_renego_state { -ENOTSUPP : chgr->reg_write_8(chgr, chgr->reg_q_factor_addr, data)) #define p9xxx_chip_set_light_load_reg(chgr, data) (chgr->reg_light_load_addr == 0 ? \ -ENOTSUPP : chgr->reg_write_8(chgr, chgr->reg_light_load_addr, data)) +#define logbuffer_prlog(p, fmt, ...) \ + gbms_logbuffer_prlog(p, LOGLEVEL_INFO, 0, LOGLEVEL_DEBUG, fmt, ##__VA_ARGS__) #endif /* __P9221_CHARGER_H__ */ |