Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] drm/bridge: non-const np in !CONFIG_OF of_drm_find_and_get_bridge() stub --
commit 7679a18d386b4f07d4526f35667dbb513f3a913d Author: Luca Ceresoli <[email protected]> drm/bridge: constify of_drm_find_and_get_bridge() device_node parameter This commit changes the device_node parameter of of_drm_find_and_get_bridge() to const so callers can pass a const pointer. > diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h > index 12ca7f6fb5243..d6ef020c4cc9b 100644 > --- a/include/drm/drm_bridge.h > +++ b/include/drm/drm_bridge.h > @@ -1274,7 +1274,7 @@ int drm_bridge_attach(struct drm_encoder *encoder, > struct drm_bridge *bridge, > enum drm_bridge_attach_flags flags); > > #ifdef CONFIG_OF > -struct drm_bridge *of_drm_find_and_get_bridge(struct device_node *np); > +struct drm_bridge *of_drm_find_and_get_bridge(const struct device_node *np); > struct drm_bridge *of_drm_find_bridge(struct device_node *np); > struct drm_bridge *of_drm_get_bridge_by_endpoint(const struct device_node > *np, > int port, int endpoint); [Severity: Low] Should the !CONFIG_OF stub of of_drm_find_and_get_bridge() in the #else branch right below also take a const struct device_node *np? include/drm/drm_bridge.h: #else static inline struct drm_bridge *of_drm_find_and_get_bridge(struct device_node *np) { return NULL; } Without const on the stub, passing a const struct device_node * in a !CONFIG_OF build fails to compile with a discarded-qualifiers error. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=11
