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: 13086074 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 ADC51C3DA7A for ; Sat, 31 Dec 2022 14:28:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232326AbiLaO2b (ORCPT ); Sat, 31 Dec 2022 09:28:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235752AbiLaO2U (ORCPT ); Sat, 31 Dec 2022 09:28:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53A3EDEA5 for ; Sat, 31 Dec 2022 06:28:19 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id D0DAFB8074C for ; 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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.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