[PATCH 1/1] regulator: ad5398: Correct the SW_POWER_DOWN bit number
From: Isaac Scott
Date: Thu Feb 06 2025 - 07:25:20 EST
The datasheet for the AD5398 regulator indicates that the Soft power
down bit is bit 15, not 16 as represented in the driver. Correct this to
ensure the functionality is implemented correctly.
Signed-off-by: Isaac Scott <isaac.scott@xxxxxxxxxxxxxxxx>
---
drivers/regulator/ad5398.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/ad5398.c b/drivers/regulator/ad5398.c
index 0274f41d0233..eb2a666a45cb 100644
--- a/drivers/regulator/ad5398.c
+++ b/drivers/regulator/ad5398.c
@@ -16,7 +16,7 @@
#include <linux/regulator/machine.h>
#include <linux/regulator/of_regulator.h>
-#define AD5398_SW_POWER_DOWN BIT(16)
+#define AD5398_SW_POWER_DOWN BIT(15)
struct ad5398_chip_info {
struct i2c_client *client;
--
2.43.0