drm/tda998x: BUG() on invalid audio format
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 1 Sep 2013 13:23:04 +0000 (15:23 +0200)
committerDave Airlie <airlied@gmail.com>
Wed, 4 Sep 2013 22:52:19 +0000 (08:52 +1000)
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>
drivers/gpu/drm/i2c/tda998x_drv.c

index c2bd711..b1f8fc6 100644 (file)
@@ -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);