]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/i2c: tda998x: index audio port enable config by route type
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 1 Mar 2019 19:52:23 +0000 (19:52 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 13 Jun 2019 20:54:48 +0000 (21:54 +0100)
commit7168916072b54934fd949e7ae24695080d4388ba
tree8b6595c403bd5cdf3b15860c3bf5ee653bdb3942
parent82642ab7345d7e736c6f1dee58c033ea6b41d2e9
drm/i2c: tda998x: index audio port enable config by route type

Rather than searching an array for the audio format (which we control)
implement indexing by route type.  This avoids iterating over the array
in several locations.

Tested-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c