Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2383981ybl; Thu, 9 Jan 2020 11:47:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzQIUrHd5XIkibDVeFLZhzlsnOlMMPsoDtX915Tp07ftssYc+46AKyja+nH8R6jM+ByGRP4 X-Received: by 2002:a9d:754a:: with SMTP id b10mr10102939otl.273.1578599275944; Thu, 09 Jan 2020 11:47:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578599275; cv=none; d=google.com; s=arc-20160816; b=zRs/YJW2NT3AQGkkgK44qAfOeSuqe5uvZdW0HvpJJvG3DIsBJo3gCdevkmiREbdzz5 kv2hf3kyy16UAlymJdLPAVOuiaoZODM2YIyq4LarMILk06FVmeEugbMU7mLpwrHebKSn 07bNYoLMflaRQnMmRO1MdqrQsZ5W+G3az8qWx7fzmz00jYjc2vSVdFOiNZ6RdeMtYstr cPMv7SJrIohKkBW+yngL12n9p+hw7gLjLmDMa4TDl7vjgy2LenvGY7HtucXl5mNVwNqx P6oMuWvVLRH53Q7UllvcUgS4q2ly+kYy2Y4HJdjh7T5qTTOEmRN3Mk0lfNlUkjEdA8qR wPnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=23iMw4u+/DVo7oz9I68gScHBJuS7WAFFLyCdELFXaPM=; b=Ah1mOc0uExgoaahj8Y7esZ5bGYdpq4011XtY6mltpjzKzk+7drctwjSy+AmzNbWTjh aPwJbk4v56DMhdoApd5BU8JFXNPMKkbO+b1XdFkRr81t3m7CTb61osMmcLF1TDzIserS XsISie1QdBod7N15T2xbDgKOpv62ZCJIYzKsa9wSycEl5bhtg5X6RPsBle6hwtl++rr3 SqjE1EomW/Nllnk9hA1+LOfs+sqq4BkXKpHfU2pmCo14l2iwPd7+47wF5TbDVhh+6Eiu EwLj0iAF06ppYrCJeO0eiGQj+c52XE9b7aQjc8S2OlpmnxsRqr3HxPNqqBONxXwmds8s 5ZNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=TXzR4VXX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c126si3972086oib.239.2020.01.09.11.47.43; Thu, 09 Jan 2020 11:47:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=TXzR4VXX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387511AbgAIQOH (ORCPT + 99 others); Thu, 9 Jan 2020 11:14:07 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:49606 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728737AbgAIQOG (ORCPT ); Thu, 9 Jan 2020 11:14:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=23iMw4u+/DVo7oz9I68gScHBJuS7WAFFLyCdELFXaPM=; b=TXzR4VXX2s5VyCBs5oKtVPrTw yHb9OfAxH0ZDUVrcmxYyGIxXK33AvONs/jnHI5eyDzIAtRLeRlUQ3Qky4FzdNoM+5yQvPmDPcG6kL vSAKJ/yCH3gDvF1bthd/9HcvS8G0p9adTaMxExDSwPdKNP/g/NrMGK3hDlQb1F1Yk4EeoeTctjm+8 aWHwvdNpdPML5xf6wdwIF+qVKhLHXgBpg2b6FfKGmZDTcjDDPrjWULZEnnTgUX37GkVtKZPs4mn3+ TNq/smGYGs1u/LnHlGfwxs+IC/Xr3uTrxJh1WkoKZ4zlJqn7gltar1n/eiPgmb36YbyW+VsfSdgUk Z18m9BCVw==; Received: from 177.206.132.169.dynamic.adsl.gvt.net.br ([177.206.132.169] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipaRd-0007cV-Ng; Thu, 09 Jan 2020 16:14:03 +0000 Date: Thu, 9 Jan 2020 17:13:45 +0100 From: Mauro Carvalho Chehab To: "Daniel W. S. Almeida" Cc: sean@mess.org, tglx@linutronix.de, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH 1/1] media: dvb_dummy_tuner: implement driver skeleton Message-ID: <20200109171345.2cf30990@kernel.org> In-Reply-To: <20200109152408.919325-2-dwlsalmeida@gmail.com> References: <20200109152408.919325-1-dwlsalmeida@gmail.com> <20200109152408.919325-2-dwlsalmeida@gmail.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, 9 Jan 2020 12:24:08 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > Implement the skeleton for the tuner driver in a separate file. > > Signed-off-by: Daniel W. S. Almeida > --- > drivers/media/tuners/Kconfig | 7 ++ > drivers/media/tuners/Makefile | 1 + > drivers/media/tuners/dvb_dummy_tuner.c | 153 +++++++++++++++++++++++++ > drivers/media/tuners/dvb_dummy_tuner.h | 20 ++++ > 4 files changed, 181 insertions(+) > create mode 100644 drivers/media/tuners/dvb_dummy_tuner.c > create mode 100644 drivers/media/tuners/dvb_dummy_tuner.h > > diff --git a/drivers/media/tuners/Kconfig b/drivers/media/tuners/Kconfig > index e104bb7766e1..efa1591fe0ae 100644 > --- a/drivers/media/tuners/Kconfig > +++ b/drivers/media/tuners/Kconfig > @@ -296,4 +296,11 @@ config MEDIA_TUNER_QM1D1B0004 > default m if !MEDIA_SUBDRV_AUTOSELECT > help > Sharp QM1D1B0004 ISDB-S tuner driver. > + > +config MEDIA_TUNER_DVB_DUMMY_TUNER > + tristate "Dummy tuner" > + depends on MEDIA_SUPPORT && I2C > + default m if !MEDIA_SUBDRV_AUTOSELECT Actually, this is a dummy driver. It should not be auto-selected, as no real hardware depends on it. We don't want production distros to come with those test drivers. When we add a bridge driver (let's say we call it DVB_DUMMY_BRIDGE), then what we could do here would be something like: depends on DVB_DUMMY_BRIDGE default y Cheers, Mauro