From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] mfd: tps65219: register regmap cdev
Date: Fri, 7 Feb 2025 08:20:26 +0100 [thread overview]
Message-ID: <20250207072026.226822-1-s.hauer@pengutronix.de> (raw)
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
next reply other threads:[~2025-02-07 7:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-07 7:20 Sascha Hauer [this message]
2025-02-12 14:04 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250207072026.226822-1-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox