linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: linux-iio@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Maxime Ripard <maxime.ripard@free-electrons.com>
Subject: Re: [PATCH] iio/adc: depend on SYSFS instead of selecting it
Date: Sun, 21 Jan 2018 12:34:40 +0000	[thread overview]
Message-ID: <20180121123440.4c03c4f6@archlinux> (raw)
In-Reply-To: <ab9e8e58-4f97-f48d-ade4-962856e5dd11@infradead.org>

On Sun, 14 Jan 2018 21:11:05 -0800
Randy Dunlap <rdunlap@infradead.org> wrote:

> From: Randy Dunlap <rdunlap@infradead.org>
> 
> Drivers should not 'select' a subsystem. Instead they should depend
> on it. If the subsystem is disabled, the user probably did that for
> a purpose and one driver shouldn't be changing that.
> 
> This also makes all IIO drivers consistent w.r.t depending on SYSFS
> instead of selecting it.
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Jonathan Cameron <jic23@kernel.org>
Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to play with it.

Whilst thinking on the autobuilders, I'd love to relax the constraint
that this depends on the at91 subarch and at least allow build testing.
Will greatly improve our test coverage.

Maxime, I ran a quick test and it's fine on x86_64 anyway.  Do you know of
any reason we will get build problems on other platforms?

Thanks,

Jonathan

> Cc: linux-iio@vger.kernel.org
> ---
>  drivers/iio/adc/Kconfig |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> --- lnx-415-rc8.orig/drivers/iio/adc/Kconfig
> +++ lnx-415-rc8/drivers/iio/adc/Kconfig
> @@ -144,10 +144,9 @@ config ASPEED_ADC
>  config AT91_ADC
>  	tristate "Atmel AT91 ADC"
>  	depends on ARCH_AT91
> -	depends on INPUT
> +	depends on INPUT && SYSFS
>  	select IIO_BUFFER
>  	select IIO_TRIGGERED_BUFFER
> -	select SYSFS
>  	help
>  	  Say yes here to build support for Atmel AT91 ADC.
>  


      reply	other threads:[~2018-01-21 12:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-15  5:11 [PATCH] iio/adc: depend on SYSFS instead of selecting it Randy Dunlap
2018-01-21 12:34 ` Jonathan Cameron [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180121123440.4c03c4f6@archlinux \
    --to=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxime.ripard@free-electrons.com \
    --cc=rdunlap@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).