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

media: move ttpci-eeprom to common

The ttpci-eeprom is actually an independent driver that
doesn't depend on the stuff under drivers/media/pci/ttpci/.

Also, it is used by an USB driver (pctv452e).

So, move it to the common directory.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

+7 -7
+4
drivers/media/common/Kconfig
··· 13 13 tristate 14 14 depends on I2C 15 15 16 + config TTPCI_EEPROM 17 + tristate 18 + depends on I2C 19 + 16 20 config CYPRESS_FIRMWARE 17 21 tristate 18 22 depends on USB
+1
drivers/media/common/Makefile
··· 3 3 obj-$(CONFIG_VIDEO_CX2341X) += cx2341x.o 4 4 obj-$(CONFIG_VIDEO_TVEEPROM) += tveeprom.o 5 5 obj-$(CONFIG_CYPRESS_FIRMWARE) += cypress_firmware.o 6 + obj-$(CONFIG_TTPCI_EEPROM) += ttpci-eeprom.o
+1 -1
drivers/media/pci/ttpci/Makefile
··· 10 10 dvb-ttpci-objs += av7110_ir.o 11 11 endif 12 12 13 - obj-$(CONFIG_TTPCI_EEPROM) += ttpci-eeprom.o 14 13 obj-$(CONFIG_DVB_BUDGET_CORE) += budget-core.o 15 14 obj-$(CONFIG_DVB_BUDGET) += budget.o 16 15 obj-$(CONFIG_DVB_BUDGET_AV) += budget-av.o ··· 19 20 20 21 ccflags-y += -I $(srctree)/drivers/media/dvb-frontends/ 21 22 ccflags-y += -I $(srctree)/drivers/media/tuners 23 + ccflags-y += -I $(srctree)/drivers/media/common
drivers/media/pci/ttpci/ttpci-eeprom.c drivers/media/common/ttpci-eeprom.c
drivers/media/pci/ttpci/ttpci-eeprom.h drivers/media/common/ttpci-eeprom.h
-5
drivers/media/usb/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 3 - # This Kconfig option is also used by the legacy av7110 driver 4 - config TTPCI_EEPROM 5 - tristate 6 - depends on I2C 7 - 8 3 if USB && MEDIA_SUPPORT 9 4 10 5 menuconfig MEDIA_USB_SUPPORT
+1 -1
drivers/media/usb/dvb-usb/Makefile
··· 83 83 ccflags-y += -I$(srctree)/drivers/media/dvb-frontends/ 84 84 # due to tuner-xc3028 85 85 ccflags-y += -I$(srctree)/drivers/media/tuners 86 - ccflags-y += -I$(srctree)/drivers/media/pci/ttpci 86 + ccflags-y += -I$(srctree)/drivers/media/common