Skip to contentSkip to conversation

regulator: ad5398: Correct SW_POWER_DOWN bit number

PATCH New Isaac Scott 1 participant 2 messages Feb 6, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover regulator: ad5398: Correct SW_POWER_DOWN bit number

This patch corrects the bit number that represents the soft power down bit of the AD5398. This was overlooked during testing as in my use case, the regulator was enabled and disabled via multiple methods, such as using the power down pin on the chip itself through a different driver.

I have tested this on v6.13, and the bit number selected here accurately reflects what is listed in the datasheet for the AD5398.

Isaac Scott (1):
regulator: ad5398: Correct the SW_POWER_DOWN bit number

 drivers/regulator/ad5398.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/1 regulator: ad5398: Correct the SW_POWER_DOWN bit number

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.

---
 drivers/regulator/ad5398.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/ad5398.c +1 -1
index 0274f41d0233..eb2a666a45cb 100644
@@ -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;
Signature · 1 line
2.43.0