From patchwork Wed Mar 25 09:49:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210463 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7981C54FD4 for ; Wed, 25 Mar 2020 09:49:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8526720772 for ; Wed, 25 Mar 2020 09:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129794; bh=TZH+ye+z6DRgrpB2IP7rRy8cr5YOW2cy/BwPD9vhHSY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=VRRw7jKmg4phrpqtFXNJAS/IuELihPPzamQHKN1sjhRqetVRN0bfQ7u11ZTwbfqIy MNxRwe3hdNE6+2rti0lbuhkUYHXvqHSzTEHjf1rVL55v6iAcXuD963lKz13x8kCUI6 Hym1ya3WBrbhodXm6gcPVF46ly7iY275H2lUqpbY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727562AbgCYJtx (ORCPT ); Wed, 25 Mar 2020 05:49:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:51356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727432AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 09D0E208CA; Wed, 25 Mar 2020 09:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129780; bh=TZH+ye+z6DRgrpB2IP7rRy8cr5YOW2cy/BwPD9vhHSY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UM7y6jLStpPRFn9nT92skZLoaWX3l79uoMZkWPKpFHKNiGrkWTh0XBbgiBZEAxDMm N+MTaNkB1CwY72V+8dufXLy18yYvjS+FVJDj+mJJF5dUA25LnUHvUE9dKdewigC69k praZZIemQurdiFa7nHjgYR0d2hGHdMXZwiiwgakA= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HTo-9d; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Hans Verkuil Subject: [PATCH v3 10/22] media: Kconfig: move CEC-specific options to cec/Kconfig Date: Wed, 25 Mar 2020 10:49:24 +0100 Message-Id: <5672138a0de97c55fa4e0d525b96f5e13c3bd6d4.1585129041.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org There's no need to have the CEC definitions inside the media Kconfig, as the Kconfig parser doesn't require symbols to be declared before their usages. With that, the main Kconfig menu becomes cleaner. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 9 --------- drivers/media/cec/Kconfig | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index b059d5b29d22..cbf8073c43b4 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -3,15 +3,6 @@ # Multimedia device configuration # -config CEC_CORE - tristate - -config CEC_NOTIFIER - bool - -config CEC_PIN - bool - source "drivers/media/rc/Kconfig" menuconfig MEDIA_SUPPORT diff --git a/drivers/media/cec/Kconfig b/drivers/media/cec/Kconfig index c01919713ab9..31417feaa213 100644 --- a/drivers/media/cec/Kconfig +++ b/drivers/media/cec/Kconfig @@ -1,4 +1,14 @@ # SPDX-License-Identifier: GPL-2.0-only + +config CEC_CORE + tristate + +config CEC_NOTIFIER + bool + +config CEC_PIN + bool + config MEDIA_CEC_RC bool "HDMI CEC RC integration" depends on CEC_CORE && RC_CORE