Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: i2c/Kconfig: use sub-menus for I2C support

There are *lots* of I2C ancillary drivers. While we're using
comments to group them, all options appear at the same menu.

It should be a lot clearer to group them into sub-menus, with
may help people to go directly to the driver(s) he's needing
to enable.

Suggested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

+46 -27
-1
drivers/media/Kconfig
··· 247 247 default y 248 248 249 249 menu "Media ancillary drivers" 250 - visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 251 250 252 251 config MEDIA_ATTACH 253 252 bool
+1 -1
drivers/media/dvb-frontends/Kconfig
··· 2 2 3 3 if MEDIA_DIGITAL_TV_SUPPORT 4 4 5 - comment "DVB Frontend drivers hidden by 'Autoselect ancillary drivers'" 5 + comment "DVB Frontend drivers auto-selected by 'Autoselect ancillary drivers'" 6 6 depends on MEDIA_HIDE_ANCILLARY_SUBDRV 7 7 8 8 menu "Customise DVB Frontends"
+42 -22
drivers/media/i2c/Kconfig
··· 5 5 6 6 if VIDEO_V4L2 7 7 8 + comment "IR I2C driver auto-selected by 'Autoselect ancillary drivers'" 9 + depends on MEDIA_SUBDRV_AUTOSELECT && I2C && RC_CORE 10 + 8 11 config VIDEO_IR_I2C 9 12 tristate "I2C module for IR" if !MEDIA_SUBDRV_AUTOSELECT || EXPERT 10 13 depends on I2C && RC_CORE ··· 25 22 # V4L2 I2C drivers that aren't related with Camera support 26 23 # 27 24 28 - comment "I2C drivers hidden by 'Autoselect ancillary drivers'" 25 + comment "audio, video and radio I2C drivers auto-selected by 'Autoselect ancillary drivers'" 29 26 depends on MEDIA_HIDE_ANCILLARY_SUBDRV 30 - 31 - menu "I2C Encoders, decoders, sensors and other helper chips" 32 - visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 33 - 34 27 # 35 28 # Encoder / Decoder module configuration 36 29 # 37 30 38 - comment "Audio decoders, processors and mixers" 31 + menu "Audio decoders, processors and mixers" 32 + visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 39 33 40 34 config VIDEO_TVAUDIO 41 35 tristate "Simple audio decoder chips" ··· 191 191 192 192 To compile this driver as a module, choose M here: the 193 193 module will be called sony-btf-mpx. 194 + endmenu 194 195 195 - comment "RDS decoders" 196 + menu "RDS decoders" 197 + visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 196 198 197 199 config VIDEO_SAA6588 198 200 tristate "SAA6588 Radio Chip RDS decoder support" ··· 207 205 208 206 To compile this driver as a module, choose M here: the 209 207 module will be called saa6588. 208 + endmenu 210 209 211 - comment "Video decoders" 210 + menu "Video decoders" 211 + visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 212 212 213 213 config VIDEO_ADV7180 214 214 tristate "Analog Devices ADV7180 decoder" ··· 477 473 478 474 source "drivers/media/i2c/cx25840/Kconfig" 479 475 480 - comment "Video encoders" 476 + endmenu 477 + 478 + menu "Video encoders" 479 + visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 481 480 482 481 config VIDEO_SAA7127 483 482 tristate "Philips SAA7127/9 digital video encoders" ··· 587 580 588 581 To compile this driver as a module, choose M here: the 589 582 module will be called ths8200. 583 + endmenu 590 584 591 - comment "Video improvement chips" 585 + menu "Video improvement chips" 586 + visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 592 587 593 588 config VIDEO_UPD64031A 594 589 tristate "NEC Electronics uPD64031A Ghost Reduction" ··· 614 605 615 606 To compile this driver as a module, choose M here: the 616 607 module will be called upd64083. 608 + endmenu 617 609 618 - comment "Audio/Video compression chips" 610 + menu "Audio/Video compression chips" 611 + visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 619 612 620 613 config VIDEO_SAA6752HS 621 614 tristate "Philips SAA6752HS MPEG-2 Audio/Video Encoder" ··· 630 619 To compile this driver as a module, choose M here: the 631 620 module will be called saa6752hs. 632 621 633 - comment "SDR tuner chips" 622 + endmenu 623 + 624 + menu "SDR tuner chips" 625 + visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 634 626 635 627 config SDR_MAX2175 636 628 tristate "Maxim 2175 RF to Bits tuner" ··· 646 632 To compile this driver as a module, choose M here; the 647 633 module will be called max2175. 648 634 649 - comment "Miscellaneous helper chips" 635 + 636 + endmenu 637 + 638 + menu "Miscellaneous helper chips" 639 + visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 650 640 651 641 config VIDEO_THS7303 652 642 tristate "THS7303/53 Video Amplifier" ··· 697 679 698 680 To compile this driver as a module, choose M here: the 699 681 module will be called st-mipid02. 700 - 701 682 endmenu 702 683 703 684 # 704 - # All drivers that are related to Media Camera Support should be here 685 + # V4L2 I2C drivers that are related with Camera support 705 686 # 706 687 707 - if MEDIA_CAMERA_SUPPORT 708 - 709 - comment "Camera sensor devices" 688 + menu "Camera sensor devices" 689 + visible if MEDIA_CAMERA_SUPPORT 710 690 711 691 config VIDEO_APTINA_PLL 712 692 tristate ··· 1205 1189 This is a V4L2 sensor driver for Samsung S5C73M3 1206 1190 8 Mpixel camera. 1207 1191 1208 - comment "Lens drivers" 1192 + endmenu 1193 + 1194 + menu "Lens drivers" 1195 + visible if MEDIA_CAMERA_SUPPORT 1209 1196 1210 1197 config VIDEO_AD5820 1211 1198 tristate "AD5820 lens voice coil support" ··· 1251 1232 capability. This is designed for linear control of 1252 1233 voice coil motors, controlled via I2C serial interface. 1253 1234 1235 + endmenu 1254 1236 1255 - comment "Flash devices" 1237 + menu "Flash devices" 1238 + visible if MEDIA_CAMERA_SUPPORT 1256 1239 1257 1240 config VIDEO_ADP1653 1258 1241 tristate "ADP1653 flash support" ··· 1281 1260 help 1282 1261 This is a driver for the lm3646 dual flash controllers. It controls 1283 1262 flash, torch LEDs. 1284 - 1285 - endif # MEDIA_CAMERA_SUPPORT 1263 + endmenu 1286 1264 1287 1265 endif # VIDEO_V4L2
+2 -2
drivers/media/spi/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 if VIDEO_V4L2 3 3 4 - comment "SPI drivers hidden by 'Autoselect ancillary drivers'" 5 - depends on MEDIA_HIDE_ANCILLARY_SUBDRV 4 + comment "SPI I2C drivers auto-selected by 'Autoselect ancillary drivers'" 5 + depends on MEDIA_HIDE_ANCILLARY_SUBDRV && SPI 6 6 7 7 menu "SPI helper chips" 8 8 visible if !MEDIA_HIDE_ANCILLARY_SUBDRV
+1 -1
drivers/media/tuners/Kconfig
··· 15 15 select MEDIA_TUNER_TDA9887 if MEDIA_SUBDRV_AUTOSELECT 16 16 select MEDIA_TUNER_MC44S803 if MEDIA_SUBDRV_AUTOSELECT 17 17 18 - comment "Tuner drivers hidden by 'Autoselect ancillary drivers'" 18 + comment "Tuner drivers auto-selected by 'Autoselect ancillary drivers'" 19 19 depends on MEDIA_HIDE_ANCILLARY_SUBDRV 20 20 depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT 21 21