projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab62e76
)
drm/tda998x: BUG() on invalid audio format
author
David Herrmann
<dh.herrmann@gmail.com>
Sun, 1 Sep 2013 13:23:04 +0000
(15:23 +0200)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i2c/tda998x_drv.c
b/drivers/gpu/drm/i2c/tda998x_drv.c
index
c2bd711
..
b1f8fc6
100644
(file)
--- 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);