summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>2025-05-28 10:20:17 +0300
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>2025-05-28 10:20:17 +0300
commitbbfd5594756011167b8f8de9a00e0c946afda1e6 (patch)
tree11171eb57fdb6b5123d796805cd0df10f6fc877b /rust/helpers/platform.c
parentd2dc30e0aa252830f908c8e793d3139d51321370 (diff)
parentf8bb3ed3197966fb60bedcbdc126d2bd5bc0a77f (diff)
Merge drm/drm-next into drm-intel-gt-next
Need to pull in a67221b5eb8d ("drm/i915/dp: Return min bpc supported by source instead of 0") in order to fix build breakage on GCC 9.4.0 (from Ubuntu 20.04). Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'rust/helpers/platform.c')
-rw-r--r--rust/helpers/platform.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/helpers/platform.c b/rust/helpers/platform.c
index ab9b9f317301..82171233d12f 100644
--- a/rust/helpers/platform.c
+++ b/rust/helpers/platform.c
@@ -11,3 +11,8 @@ void rust_helper_platform_set_drvdata(struct platform_device *pdev, void *data)
{
platform_set_drvdata(pdev, data);
}
+
+bool rust_helper_dev_is_platform(const struct device *dev)
+{
+ return dev_is_platform(dev);
+}