mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] mfd: tps65219: register regmap cdev
@ 2025-02-07  7:20 Sascha Hauer
  2025-02-12 14:04 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2025-02-07  7:20 UTC (permalink / raw)
  To: Barebox List

Expose the tps65219 regmap as cdev for debugging purposes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/mfd/tps65219.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mfd/tps65219.c b/drivers/mfd/tps65219.c
index 11f2e1798b..854210537f 100644
--- a/drivers/mfd/tps65219.c
+++ b/drivers/mfd/tps65219.c
@@ -65,6 +65,10 @@ static int tps65219_probe(struct device *dev)
 			return dev_err_probe(tps->dev, ret, "Failed to add power-button\n");
 	}
 
+	ret = regmap_register_cdev(tps->regmap, NULL);
+	if (ret)
+		return ret;
+
 	return 0;
 }
 
-- 
2.39.5




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mfd: tps65219: register regmap cdev
  2025-02-07  7:20 [PATCH] mfd: tps65219: register regmap cdev Sascha Hauer
@ 2025-02-12 14:04 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-02-12 14:04 UTC (permalink / raw)
  To: Barebox List, Sascha Hauer


On Fri, 07 Feb 2025 08:20:26 +0100, Sascha Hauer wrote:
> Expose the tps65219 regmap as cdev for debugging purposes.
> 
> 

Applied, thanks!

[1/1] mfd: tps65219: register regmap cdev
      https://git.pengutronix.de/cgit/barebox/commit/?id=ac5024cc8730 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-12 14:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-07  7:20 [PATCH] mfd: tps65219: register regmap cdev Sascha Hauer
2025-02-12 14:04 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox