summaryrefslogtreecommitdiff
path: root/include/linux/device
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-03-24 01:38:56 +0300
committerMark Brown <broonie@kernel.org>2026-03-24 01:38:56 +0300
commit57fca3a8ed8e8e42b456bef93055e8b73b1e358f (patch)
tree0fd4d9dd0c5ec3b824b16f2cd4b0505761e4baa2 /include/linux/device
parent9150d79c7a8b3287f1dc0108205f067a9249964d (diff)
parent411eb30f13823c37cd20d7c0fb7d5c8bdb1d844d (diff)
downloadlinux-57fca3a8ed8e8e42b456bef93055e8b73b1e358f.tar.xz
regulator: cros-ec: cleanup and add supplies
Chen-Yu Tsai <wenst@chromium.org> says: This series is part of a broader collection of regulator related cleanups for MediaTek Chromebooks. This one covers the regulators exposed by the ChromeOS Embedded Controller. Patch 1 adds the names of the power supply inputs to the binding. Patch 2 adds the supply names from the DT binding change in patch 1 to the regulator descriptions in the driver. This patch has a checkpatch.pl warnings, but I wonder if it's because the context size for checking complex macros is not large enough. Device tree changes will be sent separately. The goal is to get the regulator tree as complete as possible. This includes adding supply names to other regulator DT bindings, and adding all the supply links to the existing DTs.
Diffstat (limited to 'include/linux/device')
-rw-r--r--include/linux/device/bus.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/device/bus.h b/include/linux/device/bus.h
index 63de5f053c33..c1b463cd6464 100644
--- a/include/linux/device/bus.h
+++ b/include/linux/device/bus.h
@@ -65,6 +65,9 @@ struct fwnode_handle;
* this bus.
* @pm: Power management operations of this bus, callback the specific
* device driver's pm-ops.
+ * @driver_override: Set to true if this bus supports the driver_override
+ * mechanism, which allows userspace to force a specific
+ * driver to bind to a device via a sysfs attribute.
* @need_parent_lock: When probing or removing a device on this bus, the
* device core should lock the device's parent.
*
@@ -106,6 +109,7 @@ struct bus_type {
const struct dev_pm_ops *pm;
+ bool driver_override;
bool need_parent_lock;
};