drm/i2c: give i2c it's own Kconfig
authorRob Clark <robdclark@gmail.com>
Thu, 24 Jan 2013 21:46:07 +0000 (21:46 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Feb 2013 03:34:07 +0000 (13:34 +1000)
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>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/i2c/Kconfig [new file with mode: 0644]
drivers/gpu/drm/nouveau/Kconfig

index 3399b209260a14d20383a9c025718986760a81d6..ed9e3af17b318e1aa6d42940fd03382bc1ae04bf 100644 (file)
@@ -69,6 +69,8 @@ config DRM_KMS_CMA_HELPER
        help
          Choose this if you need the KMS CMA helper functions
 
+source "drivers/gpu/drm/i2c/Kconfig"
+
 config DRM_TDFX
        tristate "3dfx Banshee/Voodoo3+"
        depends on DRM && PCI
diff --git a/drivers/gpu/drm/i2c/Kconfig b/drivers/gpu/drm/i2c/Kconfig
new file mode 100644 (file)
index 0000000..1611836
--- /dev/null
@@ -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
index 8a55beeb8bdc210acec214ee07542f20f63f17df..47ccc1ad5405db43ef2ccccd0f0c9d11b0dc112d 100644 (file)
@@ -52,26 +52,3 @@ config DRM_NOUVEAU_BACKLIGHT
        help
          Say Y here if you want to control the backlight of your display
          (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