]> git.baikalelectronics.ru Git - 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)
commit152ca08c4a0599a115d88323d15031516d31d530
tree8b6595c403bd5cdf3b15860c3bf5ee653bdb3942
parentc115e2092b842bf0642ffbef4c248c88ce0000c1
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