]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a72a7bb22f04be7b555fa25de5c3d085adb076d
treeef77488677f3d19b9dddc77330b7b23c0d370339
parent2c650f5a0b1409950c9bb402781bc431fce17e33
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