]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/sun4i: mixer: Simplify the get_id logic
authorMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 14 Mar 2019 20:16:23 +0000 (21:16 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 15 Mar 2019 08:37:02 +0000 (09:37 +0100)
commit527261ddf1ac7f074e9531473192978e33b8fa85
treeffd6c217c1dbf8af2a3da5ead7f97c3100e85f4d
parenteb40baefb64063b585740ecf0b1be6c859166ad4
drm/sun4i: mixer: Simplify the get_id logic

Using the new helpers introduced since we wrote that code, we can simplify
the code to retrieve the mixer 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/3da40505e18a981c5ad626127e14ff594a826ef5.1552594551.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun8i_mixer.c