From: Daniel Balint <dbalint@google.com>
To: Jonathan Cameron <jic23@kernel.org>, Lee Jones <lee@kernel.org>
Cc: linux-iio@vger.kernel.org, mfd@lists.linux.dev,
linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org,
mwojtas@google.com, Daniel Balint <dbalint@google.com>
Subject: [PATCH v2 2/2] mfd: cros_ec: Load cros_ec_pwrmon on supported ECs
Date: Thu, 26 Nov 2026 10:47:57 +0000 [thread overview]
Message-ID: <20261126104757.2860272-3-dbalint@google.com> (raw)
In-Reply-To: <20261126104757.2860272-1-dbalint@google.com>
Load cros_ec_pwrmon driver when the ChromeOS EC advertises
EC_FEATURE_PWRMON.
Signed-off-by: Daniel Balint <dbalint@google.com>
---
drivers/mfd/cros_ec_dev.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c
index 529a23b804f7..9cf85636b7f9 100644
--- a/drivers/mfd/cros_ec_dev.c
+++ b/drivers/mfd/cros_ec_dev.c
@@ -115,6 +115,10 @@ static const struct mfd_cell cros_ec_charge_control_cells[] = {
{ .name = "cros-charge-control", },
};
+static const struct mfd_cell cros_ec_pwrmon_cells[] = {
+ { .name = "cros-ec-pwrmon", },
+};
+
static const struct cros_feature_to_cells cros_subdevices[] = {
{
.id = EC_FEATURE_CEC,
@@ -151,6 +155,11 @@ static const struct cros_feature_to_cells cros_subdevices[] = {
.mfd_cells = cros_ec_charge_control_cells,
.num_cells = ARRAY_SIZE(cros_ec_charge_control_cells),
},
+ {
+ .id = EC_FEATURE_PWRMON,
+ .mfd_cells = cros_ec_pwrmon_cells,
+ .num_cells = ARRAY_SIZE(cros_ec_pwrmon_cells),
+ },
};
static const struct mfd_cell cros_ec_platform_cells[] = {
--
2.56.1.839.g22a8290db9-goog
prev parent reply other threads:[~2026-11-26 10:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 10:47 [PATCH v2 0/2] Introduce cros_ec power monitoring Daniel Balint
2026-11-26 10:47 ` [PATCH v2 1/2] iio: adc: add cros_ec_pwrmon driver Daniel Balint
2026-11-26 10:47 ` Daniel Balint [this message]
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=20261126104757.2860272-3-dbalint@google.com \
--to=dbalint@google.com \
--cc=jic23@kernel.org \
--cc=lee@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=mwojtas@google.com \
/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
all inboxes | Powered by JetHome®