From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/power/supply/generic-adc-battery.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/kernel/drivers/power/supply/generic-adc-battery.c b/kernel/drivers/power/supply/generic-adc-battery.c
index 58f0931..09bb4ff 100644
--- a/kernel/drivers/power/supply/generic-adc-battery.c
+++ b/kernel/drivers/power/supply/generic-adc-battery.c
@@ -138,6 +138,9 @@
result);
if (ret < 0)
pr_err("read channel error\n");
+ else
+ *result *= 1000;
+
return ret;
}
--
Gitblit v1.6.2