From patchwork Mon Oct 24 20:52:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 10399 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp706864wru; Mon, 24 Oct 2022 16:42:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7LLINNQbrdWmQI0yYegytjeKcFe1V1/HpYO0pR/bfA2Zyqxs3+tailpPlW10S4Da77KDBj X-Received: by 2002:a63:2d8:0:b0:46e:9da4:df67 with SMTP id 207-20020a6302d8000000b0046e9da4df67mr20836098pgc.176.1666654972881; Mon, 24 Oct 2022 16:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666654972; cv=none; d=google.com; s=arc-20160816; b=xKqrYDIF4iFdGjcBLfBHWgjUafSG0QW153g69q3svkCYgU2X2ssl7CrBIGBOPn2ChD fgnrBy31noUN70ylUq8QAaf+Rpy5YOAqbcP+/nHCJ5uI0J30XtWsdyFnd1/8+TgusWda pKiIvJB0TjjRWzwVdhASM5hWCEWHb/bk8gTkTTjXheDyto2ibLtpdq5MsvH59VPZLp68 4zl67TUAzWhyWX3bU/k5DcxabG8a1gNPV2pXXuesF24CSZu2wTBtK4V5DjBCfhPopWez 233WgPUQRVIUqyHKC2UK1DncrS3h/2A53H4YV7t70XZf+PceWgtbo7KOICuJCbO0ODla Ntjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Vr7lNDSbGtSjiNdf7yERkT0vvFH6fFGxF2sxGNjzC/g=; b=b/M1ZAmL2zy9OqQCxGp20beUAkbM3DoaJeRQSHTXj0dEqNMhwfRomt0d+JngS4ZiZ2 UAXjPv3xw6jeH9HQlHSDVUh7UO+L7x4DwHLDnQwb5GvsKtIRjTkap2g7m5DKqQZIrvJG tHjlAb7AYSTGEPLkv4i5U7lVHX0VeVyDRVWEts//Q7136CHcoapdIwuMRaXOrFRdqSS+ mb9bgZregIwFwW33Tuxm36e/EpLpaciv2C5GEA0kHb/+BAdbBZEfAIYzSH49ql/aK/mF 2fsGgC9hJfPrxL1vdhHF1QkFPkHk/L784uxFdGBDeK4rAb3xcQUohkKvekVwei9HLoF4 IOcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=B2abmIY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 203-20020a6305d4000000b004525a153e80si928022pgf.445.2022.10.24.16.42.39; Mon, 24 Oct 2022 16:42:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=B2abmIY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbiJXXbW (ORCPT + 99 others); Mon, 24 Oct 2022 19:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbiJXXaz (ORCPT ); Mon, 24 Oct 2022 19:30:55 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC676147D03; Mon, 24 Oct 2022 14:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1666644742; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Vr7lNDSbGtSjiNdf7yERkT0vvFH6fFGxF2sxGNjzC/g=; b=B2abmIY22GUeSjPRTWzhdM/9vbX7QdDB9z6ewKCRCOvLaLS1P/CDnidjVpsxGAFWB9KLs7 JPgBNcc5ZPDngtVnNwFl8YpWba+3xfg8Dz3jVqpmCK2cv1bSPBhPG8z3kixHrN2vdJ4vc9 jZ+a11nSsRwYNTUVc3yMBQxX/K2NLcQ= From: Paul Cercueil To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= Cc: od@opendingux.net, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Paul Cercueil Subject: [PATCH 4/5] pwm: jz4740: Depend on MACH_INGENIC instead of MIPS Date: Mon, 24 Oct 2022 21:52:12 +0100 Message-Id: <20221024205213.327001-5-paul@crapouillou.net> In-Reply-To: <20221024205213.327001-1-paul@crapouillou.net> References: <20221024205213.327001-1-paul@crapouillou.net> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747614404847981194?= X-GMAIL-MSGID: =?utf-8?q?1747614404847981194?= The MACH_INGENIC Kconfig option will be selected when building a kernel targeting Ingenic SoCs, but also when compiling a generic MIPS kernel that happens to support Ingenic SoCs. Therefore, if MACH_INGENIC is not set, we know that we're not even trying to build a generic kernel that supports these SoCs, and we can hide the options to compile the SoC-specific drivers. Signed-off-by: Paul Cercueil Reviewed-by: Philippe Mathieu-Daudé Acked-by: Uwe Kleine-König --- drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 1fe420a45f91..cb623d0702f6 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -282,7 +282,7 @@ config PWM_IQS620A config PWM_JZ4740 tristate "Ingenic JZ47xx PWM support" - depends on MIPS || COMPILE_TEST + depends on MACH_INGENIC || COMPILE_TEST depends on COMMON_CLK && OF select MFD_SYSCON help