drm/bridge: lvds-codec: Add to_lvds_codec() function
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 24 Feb 2020 22:56:45 +0000 (00:56 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 25 Feb 2020 10:14:42 +0000 (11:14 +0100)
commit65c04add090f029abe8255f28448d9a12dd27828
tree5b00ede5d5f9e969c9912a4bcfe039d34cc4c93c
parent72b48ae800da8ac7d9a43dc667745eee5b5d28a5
drm/bridge: lvds-codec: Add to_lvds_codec() function

Factor out the manual container_of() uses to a common to_lvds_codec()
macro to shorten lines (and provide better type safety, although that
won't matter much in this case).

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200224225645.28060-1-laurent.pinchart+renesas@ideasonboard.com
drivers/gpu/drm/bridge/lvds-codec.c