drm_of_find_panel_or_bridge(9)
π drm_of_find_panel_or_bridge(9) β Kernel API Manual β¨
okay bestie, welcome to the drm_of_find_panel_or_bridge(9) page, straight out of the Kernel API Manual π this one's a little deprecated icon, so pay attention, iykyk.
πΈ NAME πΈ
drm_of_find_panel_or_bridge β literally returns the connected panel or bridge device π«Ά
β¨ SYNOPSIS β¨
int drm_of_find_panel_or_bridge (const struct device_node *np , int port
, int endpoint , struct drm_panel **panel , struct drm_bridge **bridge
);
π ARGUMENTS π
npβ the device tree node that's holding the encoder output ports, main character energy fr πportβ which port in the device tree node we're looking at πendpointβ the endpoint in the device tree node, slay π¦panelβ pointer to hold the returneddrm_panel, and it must not be NULL β οΈ on success the caller has to calldrm_panel_putwhen they're done with the panel, no capbridgeβ pointer to hold the returneddrm_bridgeπ
π₯ DESCRIPTION π₯
So given a DT node's port and endpoint number, this cutie finds the connected node and returns either the associated struct drm_panel or drm_bridge device β¨ literally that's the whole vibe.
β οΈ okay so important: this function is deprecated and should not be used in new drivers π no exceptions bestie. Useof_drm_get_bridge_by_endpointinstead when you're not looking for a panel, ordevm_drm_of_get_bridgeotherwise π«Ά
It returns zero if successful, or one of the standard error codes if it fails π that's it, that's the deal.
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_of.c overview(9), drm_of_crtc_port_mask(9), drm_of_find_possible_crtcs(9), drm_of_component_match_add(9), drm_of_component_probe(9), drm_of_get_panel_orientation(9), drm_of_lvds_get_dual_link_pixel_order(9), drm_of_lvds_get_dual_link_pixel_order_sink(9), drm_of_lvds_get_data_mapping(9), drm_of_get_data_lanes_count(9), drm_of_get_data_lanes_count_ep(9), drm_of_get_data_lanes_count_remote(9), drm_of_get_dsi_bus(9) π
mwah π that's the page!! sourced from ./drivers/gpu/drm, dated October 2026, and it's the drm_of_find_panel_or_bridge(9) page in the Kernel API Manual β go forth and don't use it in new drivers bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms