Skip to content

Commit 495eef1

Browse files
committed
media: atomisp: comment an unused code
There's a different table for some BYT variants that depend on something inside a FIXME ifdef. Place this also inside it, just to shut up a clang-11 warning. Reported-by: kbuild test robot <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 586f93f commit 495eef1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/staging/media/atomisp/pci/atomisp_v4l2.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,21 @@ static const struct atomisp_freq_scaling_rule dfs_rules_byt_cr[] = {
392392
},
393393
};
394394

395+
#ifdef FIXME
396+
/*
397+
* Disable this, as it is used only when this is true:
398+
* INTEL_MID_BOARD(3, TABLET, BYT, BLK, PRO, CRV2) ||
399+
* INTEL_MID_BOARD(3, TABLET, BYT, BLK, ENG, CRV2))
400+
* However, the original code is commented
401+
*/
395402
static const struct atomisp_dfs_config dfs_config_byt_cr = {
396403
.lowest_freq = ISP_FREQ_200MHZ,
397404
.max_freq_at_vmin = ISP_FREQ_320MHZ,
398405
.highest_freq = ISP_FREQ_320MHZ,
399406
.dfs_table = dfs_rules_byt_cr,
400407
.dfs_table_size = ARRAY_SIZE(dfs_rules_byt_cr),
401408
};
409+
#endif
402410

403411
static const struct atomisp_freq_scaling_rule dfs_rules_cht[] = {
404412
{

0 commit comments

Comments
 (0)