drm/i2c: tda998x: clean up tda998x_configure_audio()
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 1 Mar 2019 21:21:38 +0000 (21:21 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 13 Jun 2019 20:54:56 +0000 (21:54 +0100)
commit900b2b7250b8fe49270e9272a1d937fa69350538
treeef77488677f3d19b9dddc77330b7b23c0d370339
parent26f7bf1251c70bafe99f73edd222f6126b395b3b
drm/i2c: tda998x: clean up tda998x_configure_audio()

tda998x_configure_audio() is called via some paths where an error
return is meaningless, and as a result of moving the audio routing
code, this function no longer returns any errors, so let's make it
void. We can also make tda998x_write_aif() return void as well.

tda998x_configure_audio() also only ever needs to write the current
audio settings, so simplify the code in tda998x_audio_hw_params()
so that can happen.

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