diff options
author | Maxime Ripard <maxime@cerno.tech> | 2021-07-07 11:36:31 +0200 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-07-29 10:41:16 +0200 |
commit | f143778d90829ac37e6a481772dc0f26e3071de7 (patch) | |
tree | 48829b2ae55d9bd6bfa7c981613430ce160804c0 /drivers/gpu/drm/bridge/cdns-dsi.c | |
parent | d793b8f732d6acbc6390be7342fb2e92b069dc7f (diff) |
drm/vc4: hdmi: Remove redundant variables
The vc4_hdmi_audio_prepare function and the functions it's calling have
in several occurences multiple dereferences of either the sample rate or
the number of channels.
It turns out that these variables are also passed through the hdmi codec
parameters structure. Convert all the users to use this structure, and
if it's used multiple times use a variable to store it instead of
dereferencing it every time.
Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210707093632.1468127-1-maxime@cerno.tech
Diffstat (limited to 'drivers/gpu/drm/bridge/cdns-dsi.c')
0 files changed, 0 insertions, 0 deletions