Explorar el Código

drm/i2c: give i2c it's own Kconfig

Move this out of nouveau directory.  As we start to add more encoder
slaves used by other drivers, it makes sense to put the Kconfig bits in
one place.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Rob Clark hace 12 años
padre
commit
6504d0d990
Se han modificado 3 ficheros con 24 adiciones y 23 borrados
  1. 2 0
      drivers/gpu/drm/Kconfig
  2. 22 0
      drivers/gpu/drm/i2c/Kconfig
  3. 0 23
      drivers/gpu/drm/nouveau/Kconfig

+ 2 - 0
drivers/gpu/drm/Kconfig

@@ -69,6 +69,8 @@ config DRM_KMS_CMA_HELPER
 	help
 	help
 	  Choose this if you need the KMS CMA helper functions
 	  Choose this if you need the KMS CMA helper functions
 
 
+source "drivers/gpu/drm/i2c/Kconfig"
+
 config DRM_TDFX
 config DRM_TDFX
 	tristate "3dfx Banshee/Voodoo3+"
 	tristate "3dfx Banshee/Voodoo3+"
 	depends on DRM && PCI
 	depends on DRM && PCI

+ 22 - 0
drivers/gpu/drm/i2c/Kconfig

@@ -0,0 +1,22 @@
+menu "I2C encoder or helper chips"
+     depends on DRM && DRM_KMS_HELPER && I2C
+
+config DRM_I2C_CH7006
+	tristate "Chrontel ch7006 TV encoder"
+	default m if DRM_NOUVEAU
+	help
+	  Support for Chrontel ch7006 and similar TV encoders, found
+	  on some nVidia video cards.
+
+	  This driver is currently only useful if you're also using
+	  the nouveau driver.
+
+config DRM_I2C_SIL164
+	tristate "Silicon Image sil164 TMDS transmitter"
+	default m if DRM_NOUVEAU
+	help
+	  Support for sil164 and similar single-link (or dual-link
+	  when used in pairs) TMDS transmitters, used in some nVidia
+	  video cards.
+
+endmenu

+ 0 - 23
drivers/gpu/drm/nouveau/Kconfig

@@ -52,26 +52,3 @@ config DRM_NOUVEAU_BACKLIGHT
 	help
 	help
 	  Say Y here if you want to control the backlight of your display
 	  Say Y here if you want to control the backlight of your display
 	  (e.g. a laptop panel).
 	  (e.g. a laptop panel).
-
-menu "I2C encoder or helper chips"
-     depends on DRM && DRM_KMS_HELPER && I2C
-
-config DRM_I2C_CH7006
-	tristate "Chrontel ch7006 TV encoder"
-	default m if DRM_NOUVEAU
-	help
-	  Support for Chrontel ch7006 and similar TV encoders, found
-	  on some nVidia video cards.
-
-	  This driver is currently only useful if you're also using
-	  the nouveau driver.
-
-config DRM_I2C_SIL164
-	tristate "Silicon Image sil164 TMDS transmitter"
-	default m if DRM_NOUVEAU
-	help
-	  Support for sil164 and similar single-link (or dual-link
-	  when used in pairs) TMDS transmitters, used in some nVidia
-	  video cards.
-
-endmenu