From patchwork Wed Apr 12 08:32:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 672742 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16418C77B78 for ; Wed, 12 Apr 2023 08:41:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230522AbjDLIlM (ORCPT ); Wed, 12 Apr 2023 04:41:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbjDLIks (ORCPT ); Wed, 12 Apr 2023 04:40:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC9E67A9F; Wed, 12 Apr 2023 01:40:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BE17762FE6; Wed, 12 Apr 2023 08:39:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5375C433EF; Wed, 12 Apr 2023 08:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681288792; bh=GOQ4SJGANziwFVc6eK4kPwU3j/EPTeqkoheRg7IUP18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pE3RRDGmuluvV4V6j1Q0HzwNFZ5qW78Av7vU8ojedpE+MH93HveadZ7MCYrqvVyrN u9BrhkySpWTJOsqGF0M5lyprm1SYi76SxYLWjso/7ByWTXUvxJeVQsdYdayLysccrP VpLQbLdtdyqZLSSJSh5FOFvtb08rrBgHq95qX8rA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Randy Dunlap , Michael Walle , Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, Bartosz Golaszewski , Sasha Levin Subject: [PATCH 6.1 009/164] gpio: GPIO_REGMAP: select REGMAP instead of depending on it Date: Wed, 12 Apr 2023 10:32:11 +0200 Message-Id: <20230412082837.204048169@linuxfoundation.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230412082836.695875037@linuxfoundation.org> References: <20230412082836.695875037@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Randy Dunlap [ Upstream commit d49765b5f4320a402fbc4ed5edfd73d87640f27c ] REGMAP is a hidden (not user visible) symbol. Users cannot set it directly thru "make *config", so drivers should select it instead of depending on it if they need it. Consistently using "select" or "depends on" can also help reduce Kconfig circular dependency issues. Therefore, change the use of "depends on REGMAP" to "select REGMAP". Fixes: ebe363197e52 ("gpio: add a reusable generic gpio_chip using regmap") Signed-off-by: Randy Dunlap Cc: Michael Walle Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org Acked-by: Michael Walle Signed-off-by: Bartosz Golaszewski Signed-off-by: Sasha Levin --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index a01af11806164..e3af86f06c630 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -100,7 +100,7 @@ config GPIO_GENERIC tristate config GPIO_REGMAP - depends on REGMAP + select REGMAP tristate # put drivers in the right section, in alphabetical order