]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: backend: Simplify the get_id logic
authorMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 14 Mar 2019 20:16:22 +0000 (21:16 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 15 Mar 2019 08:36:45 +0000 (09:36 +0100)
commit4d29d8811e6390d7d31d4cdceae9a1f116bbf7cb
treea42e4df68b47339201a5eb412fb9250e20f1adef
parent3c144c39c0bae2bc7d6b2b67e23a122c865f0e5e
drm/sun4i: backend: Simplify the get_id logic

Using the new helpers introduced since we wrote that code, we can simplify
the code to retrieve the backend ID significantly.

The new code will also allow us to deal nicely with endpoints that don't
have a reg property, as expected in the case where there's a single
endpoint for a given port.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1a9bf911b0a40475da8025859032514131d5397b.1552594551.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun4i_backend.c