Unverified Commit 000458b5 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Javier Martinez Canillas
Browse files

drm: Only select I2C_ALGOBIT for drivers that actually need it



While working on a drm driver that doesn't need the i2c algobit stuff I
noticed that DRM selects this code even though only 8 drivers actually use
it. While also only some drivers use i2c, keep the select for I2C for the
next cleanup patch. Still prepare this already by also selecting I2C for
the individual drivers.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221219083627.1401627-1-u.kleine-koenig@pengutronix.de
parent 0e4dcffd
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@ menuconfig DRM
	select HDMI
	select FB_CMDLINE
	select I2C
	select I2C_ALGOBIT
	select DMA_SHARED_BUFFER
	select SYNC_FILE
# gallium uses SYS_kcmp for os_same_file_description() to de-duplicate
+2 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@ config DRM_AMDGPU
	select DRM_TTM_HELPER
	select POWER_SUPPLY
	select HWMON
	select I2C
	select I2C_ALGOBIT
	select BACKLIGHT_CLASS_DEVICE
	select INTERVAL_TREE
	select DRM_BUDDY
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@ config DRM_AST
	depends on DRM && PCI && MMU
	select DRM_GEM_SHMEM_HELPER
	select DRM_KMS_HELPER
	select I2C
	select I2C_ALGOBIT
	help
	 Say yes for experimental AST GPU driver. Do not enable
	 this driver without having a working -modesetting,
+2 −0
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@ config DRM_GMA500
	tristate "Intel GMA500/600/3600/3650 KMS Framebuffer"
	depends on DRM && PCI && X86 && MMU
	select DRM_KMS_HELPER
	select I2C
	select I2C_ALGOBIT
	# GMA500 depends on ACPI_VIDEO when ACPI is enabled, just like i915
	select ACPI_VIDEO if ACPI
	select BACKLIGHT_CLASS_DEVICE if ACPI
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@ config DRM_HISI_HIBMC
	select DRM_VRAM_HELPER
	select DRM_TTM
	select DRM_TTM_HELPER
	select I2C
	select I2C_ALGOBIT
	help
	  Choose this option if you have a Hisilicon Hibmc soc chipset.
	  If M is selected the module will be called hibmc-drm.
Loading