From patchwork Fri Aug 5 16:50:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 595855 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 7A976C00140 for ; Fri, 5 Aug 2022 16:50:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240953AbiHEQuw (ORCPT ); Fri, 5 Aug 2022 12:50:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240941AbiHEQuu (ORCPT ); Fri, 5 Aug 2022 12:50:50 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEB561C125 for ; Fri, 5 Aug 2022 09:50:48 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id l22so3866315wrz.7 for ; Fri, 05 Aug 2022 09:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=Vd2bnsDvwYK3QZs1/z4/uJM0HKufhSZFOLxUdeVAjx8=; b=G6Jq85njjPeRY3sN15vOdG+DjU9Tefc/M8qw3SCWZ9ffVB0UN4rzEOCTCzONvQ2iDi soDSuHSh1ccY1fS6Bg5bqYWFCusOe7GJF2JNA+mkf6NoSRrEjbsQZCe5WPcQyj+VsTqi 4j0HRMRDpSfjoyULvXRcJ3B42XLhoWzinsPzTYzstdIVxHsW2emSdWeN/KUwk6oC0g/R 4K9Y0XSCcV5nE67o2iXc9k5UosnJQIOYcIGKPi+KApdlNhas5Hpk5y9INdUXQUGoT81S XnfPAKCfHTFGe4RY0rPU3L+P71h/npcqP1/wzsVse9KxbM+DcxscwViC8XULb2hb2ZkY g0Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=Vd2bnsDvwYK3QZs1/z4/uJM0HKufhSZFOLxUdeVAjx8=; b=YlRAGby6yqCRX2zkvD01eK0UIc/gKmJpO2yUUJCF1Z351nRzK2h0cifA1IYIcLI87t EROI4bhh56Zes4FT0ERd27Nv/9aOTofD76kYlUZ7XodgnRT4W/jHGLbr6HscIUFuIoYf SzjJG36TAmYx4kP6TE03P5sbBj5N4FlOvpzG9CZhgNLWCfK1cdCaZkvz8grPmSQFQV8Y 5Mrhmfxwm1wJlhnh6zlpVaTVqBf+G8rcanvW+vk+ExBPyA+7SfoRzkJdOkPeYwkuo1kh iN90gTRT8uHTUpUi2HbhssKc7X00mOmSMaIDCxHnGxWfYbGcbQY7MHRcusNsK34hPr5q HU2Q== X-Gm-Message-State: ACgBeo3+A1vVFeICydW34B6iIGHUr1Yq1t6Z79zk+C51KNI3pcfU2PAy jcWApo+AvpilRHagvZau51QQtg== X-Google-Smtp-Source: AA6agR5C78I1WPKIFeNtDf+UDUlGcLonrI7K0R0ECqRS6cpCXeJ6kN7M12mEnP4TaGQJ6kWReyPSFg== X-Received: by 2002:a5d:5957:0:b0:220:79d5:f8ae with SMTP id e23-20020a5d5957000000b0022079d5f8aemr4882449wri.160.1659718247359; Fri, 05 Aug 2022 09:50:47 -0700 (PDT) Received: from rainbowdash.office.codethink.co.uk ([167.98.27.226]) by smtp.gmail.com with ESMTPSA id h28-20020a05600c2cbc00b003a4f08495b7sm11325374wmc.34.2022.08.05.09.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 09:50:47 -0700 (PDT) From: Ben Dooks To: linux-pwm@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , u.kleine-koenig@pengutronix.de, Thierry Reding , Krzysztof Kozlowski , Greentime Hu , jarkko.nikula@linux.intel.com, William Salmon , Jude Onyenegecha --subject-prefix=PATCH v3 , Ben Dooks Subject: [PATCH 5/8] pwm: dwc: allow driver to be built with COMPILE_TEST Date: Fri, 5 Aug 2022 17:50:30 +0100 Message-Id: <20220805165033.140958-6-ben.dooks@sifive.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220805165033.140958-1-ben.dooks@sifive.com> References: <20220805165033.140958-1-ben.dooks@sifive.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Allow dwc driver to be built with COMPILE_TEST should allow better coverage when build testing. Signed-off-by: Ben Dooks --- v3: - add HAS_IOMEM depdency for compile testing --- drivers/pwm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index b8717877a524..05718e0faac9 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -176,7 +176,8 @@ config PWM_CROS_EC config PWM_DWC tristate "DesignWare PWM Controller" - depends on PCI || OF + depends on PCI || OF || COMPILE_TEST + depends on HAS_IOMEM help PWM driver for Synopsys DWC PWM Controller attached to either a PCI or platform bus.