diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-09-01 15:23:04 +0200 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2013-09-05 00:52:19 +0200 |
commit | 3b28802e37bb1ca1cab584f679c42e72a7e384f8 (patch) | |
tree | be8fe0dc35d5923f158c6aec13edc2f107855ba2 /drivers/gpu/drm/i2c | |
parent | drm/radeon: protect ACPI calls with CONFIG_ACPI (diff) | |
download | linux-3b28802e37bb1ca1cab584f679c42e72a7e384f8.tar.xz linux-3b28802e37bb1ca1cab584f679c42e72a7e384f8.zip |
drm/tda998x: BUG() on invalid audio format
Suppress warning of unused-variables by adding a BUG()+return for invalid
audio-formats.
Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/i2c')
-rw-r--r-- | drivers/gpu/drm/i2c/tda998x_drv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index c2bd711e86e9..b1f8fc69023f 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -596,6 +596,10 @@ tda998x_configure_audio(struct drm_encoder *encoder, cts_n = CTS_N_M(3) | CTS_N_K(3); ca_i2s = CA_I2S_CA_I2S(0); break; + + default: + BUG(); + return; } reg_write(encoder, REG_AIP_CLKSEL, clksel_aip); |