mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-30 12:49:36 +00:00
drm/bridge: ti-sn65dsi86: Convert to drm_of_get_data_lanes_count
Convert driver to use this new helper to standardize OF "data-lanes" parsing. Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Andrzej Hajda <andrzej.hajda@intel.com> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Maxime Ripard <maxime@cerno.tech> Cc: Robert Foss <robert.foss@linaro.org> Cc: Sam Ravnborg <sam@ravnborg.org> To: dri-devel@lists.freedesktop.org Link: https://patchwork.freedesktop.org/patch/msgid/20220524010522.528569-9-marex@denx.de
This commit is contained in:
parent
56426faa14
commit
254a8d0c00
1 changed files with 2 additions and 2 deletions
|
@ -1142,8 +1142,8 @@ static void ti_sn_bridge_parse_lanes(struct ti_sn65dsi86 *pdata,
|
||||||
* mappings that the hardware supports.
|
* mappings that the hardware supports.
|
||||||
*/
|
*/
|
||||||
endpoint = of_graph_get_endpoint_by_regs(np, 1, -1);
|
endpoint = of_graph_get_endpoint_by_regs(np, 1, -1);
|
||||||
dp_lanes = of_property_count_u32_elems(endpoint, "data-lanes");
|
dp_lanes = drm_of_get_data_lanes_count(endpoint, 1, SN_MAX_DP_LANES);
|
||||||
if (dp_lanes > 0 && dp_lanes <= SN_MAX_DP_LANES) {
|
if (dp_lanes > 0) {
|
||||||
of_property_read_u32_array(endpoint, "data-lanes",
|
of_property_read_u32_array(endpoint, "data-lanes",
|
||||||
lane_assignments, dp_lanes);
|
lane_assignments, dp_lanes);
|
||||||
of_property_read_u32_array(endpoint, "lane-polarities",
|
of_property_read_u32_array(endpoint, "lane-polarities",
|
||||||
|
|
Loading…
Reference in a new issue