Received: by 10.213.65.68 with SMTP id h4csp441356imn; Fri, 16 Mar 2018 07:53:40 -0700 (PDT) X-Google-Smtp-Source: AG47ELvPTYITDN/YdyflyeCTusNDhz+GRWqkj+Sou8C3TGQwztYhXtzyjpdB0BlVXMKrSpDapwZc X-Received: by 10.99.103.69 with SMTP id b66mr1680772pgc.233.1521212020214; Fri, 16 Mar 2018 07:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521212020; cv=none; d=google.com; s=arc-20160816; b=0j3YEyDYNIRP+9ohcmsO4Fo5HraYTRt9DfPltWqUu3SKQS891wYgFclt+wf/uEG3zn zTZfl555lbJzUimg6bNSJMC46vjEebLMeP/x5pWeydk1YaN1z15r9n83e57+o1Vjfmgn dM2ZpuNE+oHlYARAbbcaYLAfqdX5ONIUYMxNy8rdT/P4ABO8VaCJGJcN+aRE0kdUaNei VkaIrqxX/oB6CQgTYUrUdSlNaCRHqQ/AP/DnbqpucRJo3cwuh5NP4MZrcvbASueIwv9e JXvhCqLftVjooboqAcwZW5TRomeTHYq6TuNfG8qKvUD38Zs8LW4dq7B4xly8zCW2UmUx gJJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=e0dsyCE4jHiv809ny2dnFvZn4YpHGhV7Sm8e2ZfQYy8=; b=Xa2y+Pnf8v0jr6E1PVUqN/4YPprhlUed87EbgwV7dE10524rih4AdXsdnB4C8K+rux mNhOWi3tQrxPSDrrM3/ro6xqeGtX1TRB0lq8a1ZG3Fr9+Qfm8NlmDVcJPrtKk/XvZlY6 5YURqua8ERcEAiqNw7tfMkW+AgMfXY89kWX2iqXEgvYvgYRLIbbhwjiXGM2L2U7MaDyv UOKLVQC252Ep29VbEEBfRxTjZRkMrerh74Q/s0eyUf9z7r9DZqymgXcoGZqdhbUAx1lm I7DlE9LS9i6BTg+QoH9TOYqMuNPyzqDoNk8Mt2NpqXtCCtwEjTxDeTSBG6mCJeFaTiRL /xSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si4826910pfa.94.2018.03.16.07.53.25; Fri, 16 Mar 2018 07:53:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753697AbeCPOw3 (ORCPT + 99 others); Fri, 16 Mar 2018 10:52:29 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:48516 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753647AbeCPOwT (ORCPT ); Fri, 16 Mar 2018 10:52:19 -0400 Received: from ayla.of.borg ([84.194.111.163]) by andre.telenet-ops.be with bizsmtp id Nepk1x00b3XaVaC01erTM8; Fri, 16 Mar 2018 15:52:18 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1ewpm1-0000QL-9P; Fri, 16 Mar 2018 14:51:57 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ewpm1-0001Gq-1V; Fri, 16 Mar 2018 14:51:57 +0100 From: Geert Uytterhoeven To: Christoph Hellwig , Marek Szyprowski , Robin Murphy , Felipe Balbi , Greg Kroah-Hartman , "James E . J . Bottomley" , "Martin K . Petersen" , Andrew Morton , Mark Brown , Liam Girdwood , Tejun Heo , Herbert Xu , "David S . Miller" , Bartlomiej Zolnierkiewicz , Stefan Richter , Alan Tull , Moritz Fischer , Wolfram Sang , Jonathan Cameron , Joerg Roedel , Matias Bjorling , Jassi Brar , Mauro Carvalho Chehab , Ulf Hansson , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Boris Brezillon , Richard Weinberger , Kalle Valo , Ohad Ben-Cohen , Bjorn Andersson , Eric Anholt , Stefan Wahren Cc: iommu@lists.linux-foundation.org, linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org, alsa-devel@alsa-project.org, linux-ide@vger.kernel.org, linux-crypto@vger.kernel.org, linux-fbdev@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-fpga@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, linux-block@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 08/21] iio: adc: Remove depends on HAS_DMA in case of platform dependency Date: Fri, 16 Mar 2018 14:51:41 +0100 Message-Id: <1521208314-4783-9-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> References: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their dependencies on HAS_DMA, to prevent compiling subsystems or drivers that cannot work anyway. This simplifies the dependencies, and allows to improve compile-testing. Signed-off-by: Geert Uytterhoeven Reviewed-by: Mark Brown Acked-by: Robin Murphy --- v2: - Add Reviewed-by, Acked-by, - Drop RFC state, - Split per subsystem. --- drivers/iio/adc/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 72bc2b71765ae2ff..57f46e88f5c2536e 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -158,7 +158,6 @@ config AT91_SAMA5D2_ADC tristate "Atmel AT91 SAMA5D2 ADC" depends on ARCH_AT91 || COMPILE_TEST depends on HAS_IOMEM - depends on HAS_DMA select IIO_TRIGGERED_BUFFER help Say yes here to build support for Atmel SAMA5D2 ADC which is @@ -647,7 +646,6 @@ config SD_ADC_MODULATOR config STM32_ADC_CORE tristate "STMicroelectronics STM32 adc core" depends on ARCH_STM32 || COMPILE_TEST - depends on HAS_DMA depends on OF depends on REGULATOR select IIO_BUFFER -- 2.7.4