pmaports/device/unmaintained/linux-xiaomi-wt88047-downstream/bq2022a-batid-debug.patch
Minecrell 3d50fe77da
unmaintained/xiaomi-wt88047-downstream: new device (Xiaomi Redmi 2) (MR 2085)
This device port is unmaintained: The mainline port (xiaomi-wt88047)
is preferred. This is only intended for testing, and was used to validate
the battery/charging driver as one example. Various patches are used
for the downstream kernel that expose helpful information for debugging.

[ci:skip-build]: already built successfully in CI
2021-04-05 15:08:28 +02:00

12 lines
449 B
Diff

Enable debug prints for bq2022a-batid. This is used for battery detection
on xiaomi-wt88047. Similar code is used for mainline within the lk2nd bootloader.
diff --git a/drivers/power/bq2022a-batid.c b/drivers/power/bq2022a-batid.c
index c806eca2ce8..90d274482b4 100644
--- a/drivers/power/bq2022a-batid.c
+++ b/drivers/power/bq2022a-batid.c
@@ -1,3 +1,4 @@
+#define DEBUG
#define pr_fmt(fmt) "BQ2022A:%s: " fmt, __func__
#include <linux/init.h>