Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3377099ybp; Sun, 6 Oct 2019 10:35:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqydM4WpJD7iK3m2zhGliFpe/mQyfF+8SezjQsRLdIT7tdYEJhUG2v+2+YbIzxuY0e5yoRjY X-Received: by 2002:a50:fd86:: with SMTP id o6mr25540654edt.139.1570383328622; Sun, 06 Oct 2019 10:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570383328; cv=none; d=google.com; s=arc-20160816; b=bF5unpS8tkxeJhZ0InA60K24v6M4Gg23eL9gYe6iUf/q6KOz/ogITfPAji9Er0vLyP AwHOJjVjFCB3da5xc+0RNdE5rm8KT9HEde3s+OjCmz50P2ga+qnQ+LlZQPQdXv8yxChm ePBGxLDY3Ky5lp2vXG4PJwaM8QtBqf+tc+5bw9mdUWOp8nM9fPgHxvrFj/DMWfHikKeJ y2vDkl1+5XhbpnFjYlWJA54JGahZzdSE6XsK9O4gQbcZN9793u/Ka1omUluAEcS/uFCO iA5EGskf+dBNF4BJpWbU8hL4dC5FMXRMjo/Mr6yHGTeOFoQ7wUsy88Zm38xB3pjw7435 tnWw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VGeJFUbeugQDLMPKxSrQ9n1uthpAQfSgIBuInj+XG/8=; b=XOR9y9agxAirbjZIL00dTPiZxGRmyvkuEtOGq/f7UFhm3sBUxmFPHmWlzo/vBPdbxA fJxujiSUp7CJwm6Xx2D3sJPAQnyGAaKX7q83Cy9Lz30vwbxrhYyC1+XtJ0Uckoo72qaK xqXdjDsCDrMtrnJlH0V0YNaIe2OuBy8Dcf5XyuUVlZxKMC9V12JkjO+tAcfEsUTSMw21 aU40OSs0+z33r7Ikm/sIvQqeUBjAVETei62JClD5XgScPFc+fLaro7jKjp1H+kLy2nZ3 kgT/x6RolNjyPRRDnPxAYKWBKYmF+ArCoNEFMLAEcQQKfbFXN3/kx0dcevGg9JYRmHYh pGJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IiLzthYd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c31si7517450edb.309.2019.10.06.10.35.04; Sun, 06 Oct 2019 10:35:28 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=IiLzthYd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729547AbfJFRcU (ORCPT + 99 others); Sun, 6 Oct 2019 13:32:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:58764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728005AbfJFRcT (ORCPT ); Sun, 6 Oct 2019 13:32:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 9B9B92080F; Sun, 6 Oct 2019 17:32:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383138; bh=U96cZagmbCkN7R1eK0pRJ3y3+87rAh1edE3u8Bb4/Ec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IiLzthYdInfxvY/Y+dy0vDCF3NI3yzsT0CgKn4QVrss1USiSuCkVOv6PEbsZwo4Ne jWVqpH9Cxqt2wcpxDvrEDBdcaIGuwX7pCyormlfQ0cOT5/X0PR5kmjojuLgMNzw0BS p9QVhbxKXQsWQ4of7SNwGm0U5TKVuZot7g8D3+Jc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pierre-Louis Bossart , Vinod Koul , Sasha Levin Subject: [PATCH 4.19 101/106] soundwire: fix regmap dependencies and align with other serial links Date: Sun, 6 Oct 2019 19:21:47 +0200 Message-Id: <20191006171203.501329692@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171124.641144086@linuxfoundation.org> References: <20191006171124.641144086@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pierre-Louis Bossart [ Upstream commit 8676b3ca4673517650fd509d7fa586aff87b3c28 ] The existing code has a mixed select/depend usage which makes no sense. config SOUNDWIRE_BUS tristate select REGMAP_SOUNDWIRE config REGMAP_SOUNDWIRE tristate depends on SOUNDWIRE_BUS Let's remove one layer of Kconfig definitions and align with the solutions used by all other serial links. Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20190718230215.18675-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/base/regmap/Kconfig | 2 +- drivers/soundwire/Kconfig | 7 +------ drivers/soundwire/Makefile | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/base/regmap/Kconfig b/drivers/base/regmap/Kconfig index 6ad5ef48b61ee..8cd2ac650b505 100644 --- a/drivers/base/regmap/Kconfig +++ b/drivers/base/regmap/Kconfig @@ -44,7 +44,7 @@ config REGMAP_IRQ config REGMAP_SOUNDWIRE tristate - depends on SOUNDWIRE_BUS + depends on SOUNDWIRE config REGMAP_SCCB tristate diff --git a/drivers/soundwire/Kconfig b/drivers/soundwire/Kconfig index 84876a74874fb..1ba1556f19878 100644 --- a/drivers/soundwire/Kconfig +++ b/drivers/soundwire/Kconfig @@ -3,7 +3,7 @@ # menuconfig SOUNDWIRE - bool "SoundWire support" + tristate "SoundWire support" help SoundWire is a 2-Pin interface with data and clock line ratified by the MIPI Alliance. SoundWire is used for transporting data @@ -16,17 +16,12 @@ if SOUNDWIRE comment "SoundWire Devices" -config SOUNDWIRE_BUS - tristate - select REGMAP_SOUNDWIRE - config SOUNDWIRE_CADENCE tristate config SOUNDWIRE_INTEL tristate "Intel SoundWire Master driver" select SOUNDWIRE_CADENCE - select SOUNDWIRE_BUS depends on X86 && ACPI && SND_SOC ---help--- SoundWire Intel Master driver. diff --git a/drivers/soundwire/Makefile b/drivers/soundwire/Makefile index 5817beaca0e1f..1e2c00163142e 100644 --- a/drivers/soundwire/Makefile +++ b/drivers/soundwire/Makefile @@ -4,7 +4,7 @@ #Bus Objs soundwire-bus-objs := bus_type.o bus.o slave.o mipi_disco.o stream.o -obj-$(CONFIG_SOUNDWIRE_BUS) += soundwire-bus.o +obj-$(CONFIG_SOUNDWIRE) += soundwire-bus.o #Cadence Objs soundwire-cadence-objs := cadence_master.o -- 2.20.1