Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2760940pxj; Mon, 31 May 2021 10:04:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/IEUFhotc54AuaWAZCjHwziHJR2Ms0cKp/ZmnB5iHXqYkY3t/uAPePp6XeqQXTosjiBVh X-Received: by 2002:a05:6638:3445:: with SMTP id q5mr21667196jav.120.1622480676547; Mon, 31 May 2021 10:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622480676; cv=none; d=google.com; s=arc-20160816; b=crTwbZCC5ggKWsbghsnc+d5243kSY0hHTgwy5RSteO0q0DgQeFmA+eRYQsKpeC7oST NCEp6V5DMvPP0HMrPhIhwgHRJ/MvArKnyyZFl3mY3nS7Q44wPTAKZRZevroGXgYY92R1 vd+gdCHqU/aI43ZYrY0G4SjMmpEFWyJIVZ2XoJWp03jQYYZiFm52zhXtvU2kwK1Hf5Dr vDWexZ5/WwPQcl19gy1IWFbvoV4dd93CBo0hfoimOcgqe77/aq8T5sm1j1tGkozll/XN TlJCQiSrEqDAiyYD/ihdlP/kCcnQ3qxU4wFwvvaKfYFuLOTZCc3X6vruEKr7Uc5zR0DC mIEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=9sAunkHSrB8VR5EyV/+iVNvFKgT/W2bf93TUYFdSkkc=; b=008M1gl/Ry1bQYOsBtrn0Ptfti1ETuqvQvu7ghgh+U5FIhRdLeaQlfJnJicip2VN8X D3guwXKFUapP7f2JxgrzsgbqMU8QOqWk5JDlpIYYQuybkk3j8/74wcTeTIyCkMkTCEKx yu3EI5XvyXszwbkHduIX1YlTXZyoyTKn7fRp8gzDATF1194HcTO9fhSMZj1G8bOvepBa 1HUKGJkvjeNCu8vUKMdWxrh0hc+e38YN7Bx763V9Rezr25IGQqmAJ2E6QDGIG4mrHbcE gCvooRol1NGBLQkFVPxbAfp894wU83XeCWXCrWkNUS0HC4ybFMaNCTIZvU2uYFRT1wcd cRKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=pGnZ5y3d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si14417524jad.49.2021.05.31.10.04.23; Mon, 31 May 2021 10:04:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=pGnZ5y3d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232749AbhEaRF0 (ORCPT + 99 others); Mon, 31 May 2021 13:05:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:47452 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234258AbhEaQJ4 (ORCPT ); Mon, 31 May 2021 12:09:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1653061374; Mon, 31 May 2021 16:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622477296; bh=q8KnKc40WZgJ5sv4lBQBF1ij+CBYkkDHJoGvstVQIGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pGnZ5y3dkGXO2reSFNs4hRClzd3gI57fCN6+H2Lmy1E5FhLubNVEkQy7kHN3ymSi9 1JDU+a0kmRadKKxYijbk+k5AOMrEy5YH+vYWxmgDOKrM9rjd9YolTBOo7jAUT5s5fc AtS2ZU8CMjZhnicOTa5QPPh7rmY2uSS+IhKR6JpNelLBTzQ9UnPz5j0YxCV3O/meRp wo+z8v9jibtKKjWdUabBcI1Q7tOoEYzqUSE60WAW5Q77PMng8IzPy+sKTkdgilrow3 DxvvmV3EbjQB6V+TFc/jz9SEwDR9f7RIJfLQGcMHkscyF+Fd33gvangBsEM3Y6yBwk dubufZs043/Xw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1lnkSb-000epN-JT; Mon, 31 May 2021 18:08:13 +0200 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 1/2] media: move ttpci-eeprom to common Date: Mon, 31 May 2021 18:08:11 +0200 Message-Id: <500441146cba4025369fd67f3e68e1a351f33864.1622476959.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/media/common/Kconfig | 4 ++++ drivers/media/common/Makefile | 1 + drivers/media/{pci/ttpci => common}/ttpci-eeprom.c | 0 drivers/media/{pci/ttpci => common}/ttpci-eeprom.h | 0 drivers/media/pci/ttpci/Makefile | 2 +- drivers/media/usb/Kconfig | 5 ----- drivers/media/usb/dvb-usb/Makefile | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename drivers/media/{pci/ttpci => common}/ttpci-eeprom.c (100%) rename drivers/media/{pci/ttpci => common}/ttpci-eeprom.h (100%) diff --git a/drivers/media/common/Kconfig b/drivers/media/common/Kconfig index 4ea03b7899a8..0f6bde0f793e 100644 --- a/drivers/media/common/Kconfig +++ b/drivers/media/common/Kconfig @@ -13,6 +13,10 @@ config VIDEO_TVEEPROM tristate depends on I2C +config TTPCI_EEPROM + tristate + depends on I2C + config CYPRESS_FIRMWARE tristate depends on USB diff --git a/drivers/media/common/Makefile b/drivers/media/common/Makefile index b71e4b62eea5..55b5a1900124 100644 --- a/drivers/media/common/Makefile +++ b/drivers/media/common/Makefile @@ -3,3 +3,4 @@ obj-y += b2c2/ saa7146/ siano/ v4l2-tpg/ videobuf2/ obj-$(CONFIG_VIDEO_CX2341X) += cx2341x.o obj-$(CONFIG_VIDEO_TVEEPROM) += tveeprom.o obj-$(CONFIG_CYPRESS_FIRMWARE) += cypress_firmware.o +obj-$(CONFIG_TTPCI_EEPROM) += ttpci-eeprom.o diff --git a/drivers/media/pci/ttpci/ttpci-eeprom.c b/drivers/media/common/ttpci-eeprom.c similarity index 100% rename from drivers/media/pci/ttpci/ttpci-eeprom.c rename to drivers/media/common/ttpci-eeprom.c diff --git a/drivers/media/pci/ttpci/ttpci-eeprom.h b/drivers/media/common/ttpci-eeprom.h similarity index 100% rename from drivers/media/pci/ttpci/ttpci-eeprom.h rename to drivers/media/common/ttpci-eeprom.h diff --git a/drivers/media/pci/ttpci/Makefile b/drivers/media/pci/ttpci/Makefile index 9b44c479fcdd..61001fa5a93e 100644 --- a/drivers/media/pci/ttpci/Makefile +++ b/drivers/media/pci/ttpci/Makefile @@ -10,7 +10,6 @@ ifdef CONFIG_DVB_AV7110_IR dvb-ttpci-objs += av7110_ir.o endif -obj-$(CONFIG_TTPCI_EEPROM) += ttpci-eeprom.o obj-$(CONFIG_DVB_BUDGET_CORE) += budget-core.o obj-$(CONFIG_DVB_BUDGET) += budget.o obj-$(CONFIG_DVB_BUDGET_AV) += budget-av.o @@ -20,3 +19,4 @@ obj-$(CONFIG_DVB_AV7110) += dvb-ttpci.o ccflags-y += -I $(srctree)/drivers/media/dvb-frontends/ ccflags-y += -I $(srctree)/drivers/media/tuners +ccflags-y += -I $(srctree)/drivers/media/common diff --git a/drivers/media/usb/Kconfig b/drivers/media/usb/Kconfig index 00feadb217d8..f97153df3c84 100644 --- a/drivers/media/usb/Kconfig +++ b/drivers/media/usb/Kconfig @@ -1,10 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -# This Kconfig option is also used by the legacy av7110 driver -config TTPCI_EEPROM - tristate - depends on I2C - if USB && MEDIA_SUPPORT menuconfig MEDIA_USB_SUPPORT diff --git a/drivers/media/usb/dvb-usb/Makefile b/drivers/media/usb/dvb-usb/Makefile index 28e4806a87cd..c22514948db2 100644 --- a/drivers/media/usb/dvb-usb/Makefile +++ b/drivers/media/usb/dvb-usb/Makefile @@ -83,4 +83,4 @@ obj-$(CONFIG_DVB_USB_TECHNISAT_USB2) += dvb-usb-technisat-usb2.o ccflags-y += -I$(srctree)/drivers/media/dvb-frontends/ # due to tuner-xc3028 ccflags-y += -I$(srctree)/drivers/media/tuners -ccflags-y += -I$(srctree)/drivers/media/pci/ttpci +ccflags-y += -I$(srctree)/drivers/media/common -- 2.31.1