From patchwork Wed Apr 12 08:32:13 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: 672998 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 4355BC7619A for ; Wed, 12 Apr 2023 08:48:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231246AbjDLIsM (ORCPT ); Wed, 12 Apr 2023 04:48:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjDLIsK (ORCPT ); Wed, 12 Apr 2023 04:48:10 -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 CE59693F4; Wed, 12 Apr 2023 01:47:42 -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 E04C163120; Wed, 12 Apr 2023 08:47:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3677C433D2; Wed, 12 Apr 2023 08:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681289245; bh=TmVgtrcayJOHHCETtAj2Z1Xq+rIbApmhoK92MLxWiEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ShsuQgbUJhkcRUmUTr+iB9VWQlECM8M7v+T76XMkakv8Rw4/1L1zzh8Iqmue9Qxxg fUyib+sZAcBiZ78UK8dXbVudTOd1/5AWfAbo5ho6vK1azhMYhlc6SqAuCSe9OBimn2 G86Or/ckjutUieSjCpJojQ0CFqY8gvNM3mH7oDXQ= 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.2 007/173] gpio: GPIO_REGMAP: select REGMAP instead of depending on it Date: Wed, 12 Apr 2023 10:32:13 +0200 Message-Id: <20230412082838.427252919@linuxfoundation.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230412082838.125271466@linuxfoundation.org> References: <20230412082838.125271466@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 e9917a45b005a..42e5042d01495 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