aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-06-24 11:17:27 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-06-24 11:17:27 -0400
commit60eb9579c1af6e2c077cbc795969f4ee49041c34 (patch)
tree88bf9f50779c0c94312cdfd2dbb3fb97ff0844b3
parent5776fbec90735e72e1310d0d006c098aca7f1f00 (diff)
adv7842: comment out a table useful for debug
Gcc 6.1 warns about an unused table: drivers/media/i2c/adv7842.c:2400:27: warning: 'prim_mode_txt' defined but not used [-Wunused-const-variable=] static const char * const prim_mode_txt[] = { ^~~~~~~~~~~~~ That seems to be useful for debug, and likely were used before. While we could simply remove, let's comment it out, for now. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/media/i2c/adv7842.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.c
index ecaacb0a6fa1..8081ef78ec05 100644
--- a/drivers/media/i2c/adv7842.c
+++ b/drivers/media/i2c/adv7842.c
@@ -2397,6 +2397,8 @@ static void adv7842_log_infoframes(struct v4l2_subdev *sd)
2397 log_infoframe(sd, &cri[i]); 2397 log_infoframe(sd, &cri[i]);
2398} 2398}
2399 2399
2400#if 0
2401/* Let's keep it here for now, as it could be useful for debug */
2400static const char * const prim_mode_txt[] = { 2402static const char * const prim_mode_txt[] = {
2401 "SDP", 2403 "SDP",
2402 "Component", 2404 "Component",
@@ -2415,6 +2417,7 @@ static const char * const prim_mode_txt[] = {
2415 "Reserved", 2417 "Reserved",
2416 "Reserved", 2418 "Reserved",
2417}; 2419};
2420#endif
2418 2421
2419static int adv7842_sdp_log_status(struct v4l2_subdev *sd) 2422static int adv7842_sdp_log_status(struct v4l2_subdev *sd)
2420{ 2423{