From patchwork Sat Dec 31 14:41:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 13086076 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 683B0C3DA7D for ; Sat, 31 Dec 2022 14:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rk5fJCFn0tGucBNOQIx4w8acM5ouCuBxwOv+5MpxPAo=; b=QIOTTpgNlIlT82 YBIdULVVCh9iHXqQ36LpKu2434vRvvzk3dZQsLnb8j1r9l2p639hAnC+aKWf0mc7CP1DZna2D7uj8 BSLM8bYA3poGwfdgn0cVVvcUyYKqCxNWMx8uF8XBXI2S6XHC0a45ydL8Uw5djQ7kzFEhp9kr+Yld2 mX8tLuYX64avSvdDZ191kGJ61MOZyk191JQvPJ65d8X9GqU3dxiFmZKgRb8gvux7bfOyPC3rdMiOn 9dBQ7sT2OpvtNmn1pL66RwLDvFNQqcbn+MF/SAW4jReK6WDmg1MpzdcWIKgZMDYtPGWjMwzZVwjX+ wcyjGF0YXG7mP+meLPkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pBcqV-006RrY-5N; Sat, 31 Dec 2022 14:28:23 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pBcqR-006Roy-1s for linux-arm-kernel@lists.infradead.org; Sat, 31 Dec 2022 14:28:20 +0000 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 1E3D760B88; Sat, 31 Dec 2022 14:28:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F921C433D2; Sat, 31 Dec 2022 14:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672496896; bh=1QkZrx7Aa7eDln4sYRts/qjFGicgXfSgJ1zUaVqQfhE=; h=From:To:Cc:Subject:Date:From; b=U9R1FFMocQLfIBiVK/u/70b8WmiIutNYYHaHRlkeeLKkchpbFXDG9XtOPhGOkHjFn NOzlRqcwZARTB4c73Dfh0Dv+1OwHNjxNCcz+rQM0h2OR5QjYseQSmNgDBgeZyLiw1T DD5+u80qEu8KERQpsLNCZv2iyW+MjGDS++LEJ45lcdJ4A7JjaeEbP6FKoiNRG2gA9/ emqlGji8S7hjYgh97VKUVm6j/kLOVok4eF2ofaXNHIVTR5WUL23v1TUDagovg8igki IH2Z2KHGBkq5u0Ggtvowy1J4scUceH4xnMxUwBh2S4xMHkMatC3AVgP1pE230lKT3H vCxszousXeTpQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Jonathan Cameron , Alexander Sverdlin , Hartley Sweeten Subject: [PATCH] iio: adc: ep93xx: Enable wider build testing with COMPILE_TEST Date: Sat, 31 Dec 2022 14:41:28 +0000 Message-Id: <20221231144128.489810-1-jic23@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221231_062819_189572_DEC78535 X-CRM114-Status: GOOD ( 12.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Jonathan Cameron It is useful to be able to build this driver without needing to build support for ARCH_EP93XX. Also add an explicit dependency on HAS_IOMEM so we have devm_platform_ioremap_resource() etc available. Signed-off-by: Jonathan Cameron Cc: Alexander Sverdlin Cc: Hartley Sweeten Acked-by: Alexander Sverdlin --- drivers/iio/adc/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 46c4fc2fc534..7d6e74189a2d 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -441,7 +441,8 @@ config ENVELOPE_DETECTOR config EP93XX_ADC tristate "Cirrus Logic EP93XX ADC driver" - depends on ARCH_EP93XX + depends on ARCH_EP93XX || COMPILE_TEST + depends on HAS_IOMEM help Driver for the ADC module on the EP93XX series of SoC from Cirrus Logic. It's recommended to switch on CONFIG_HIGH_RES_TIMERS option, in this