All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: ti-tsc2046: do not explicity set INDIO_BUFFER_TRIGGERED mode
@ 2022-06-29 20:39 Marcus Folkesson
  2022-06-30  5:07 ` Oleksij Rempel
  0 siblings, 1 reply; 3+ messages in thread
From: Marcus Folkesson @ 2022-06-29 20:39 UTC (permalink / raw)
  To: Oleksij Rempel, kernel, Jonathan Cameron, Lars-Peter Clausen
  Cc: linux-iio, linux-kernel, Marcus Folkesson

The core sets INDIO_BUFFER_TRIGGERED as part of
devm_iio_triggered_buffer_setup().

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
 drivers/iio/adc/ti-tsc2046.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/ti-tsc2046.c b/drivers/iio/adc/ti-tsc2046.c
index 55b35570ad8b..0d9436a69cbf 100644
--- a/drivers/iio/adc/ti-tsc2046.c
+++ b/drivers/iio/adc/ti-tsc2046.c
@@ -776,7 +776,7 @@ static int tsc2046_adc_probe(struct spi_device *spi)
 	priv->spi = spi;
 
 	indio_dev->name = TI_TSC2046_NAME;
-	indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED;
+	indio_dev->modes = INDIO_DIRECT_MODE;
 	indio_dev->channels = dcfg->channels;
 	indio_dev->num_channels = dcfg->num_channels;
 	indio_dev->info = &tsc2046_adc_info;
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: adc: ti-tsc2046: do not explicity set INDIO_BUFFER_TRIGGERED mode
  2022-06-29 20:39 [PATCH] iio: adc: ti-tsc2046: do not explicity set INDIO_BUFFER_TRIGGERED mode Marcus Folkesson
@ 2022-06-30  5:07 ` Oleksij Rempel
  2022-07-01 16:50   ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Oleksij Rempel @ 2022-06-30  5:07 UTC (permalink / raw)
  To: Marcus Folkesson
  Cc: Oleksij Rempel, kernel, Jonathan Cameron, Lars-Peter Clausen,
	linux-iio, linux-kernel

On Wed, Jun 29, 2022 at 10:39:10PM +0200, Marcus Folkesson wrote:
> The core sets INDIO_BUFFER_TRIGGERED as part of
> devm_iio_triggered_buffer_setup().
> 
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>

Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>

Thank you!

> ---
>  drivers/iio/adc/ti-tsc2046.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/ti-tsc2046.c b/drivers/iio/adc/ti-tsc2046.c
> index 55b35570ad8b..0d9436a69cbf 100644
> --- a/drivers/iio/adc/ti-tsc2046.c
> +++ b/drivers/iio/adc/ti-tsc2046.c
> @@ -776,7 +776,7 @@ static int tsc2046_adc_probe(struct spi_device *spi)
>  	priv->spi = spi;
>  
>  	indio_dev->name = TI_TSC2046_NAME;
> -	indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED;
> +	indio_dev->modes = INDIO_DIRECT_MODE;
>  	indio_dev->channels = dcfg->channels;
>  	indio_dev->num_channels = dcfg->num_channels;
>  	indio_dev->info = &tsc2046_adc_info;
> -- 
> 2.36.1
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: adc: ti-tsc2046: do not explicity set INDIO_BUFFER_TRIGGERED mode
  2022-06-30  5:07 ` Oleksij Rempel
@ 2022-07-01 16:50   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2022-07-01 16:50 UTC (permalink / raw)
  To: Oleksij Rempel
  Cc: Marcus Folkesson, Oleksij Rempel, kernel, Lars-Peter Clausen,
	linux-iio, linux-kernel

On Thu, 30 Jun 2022 07:07:26 +0200
Oleksij Rempel <o.rempel@pengutronix.de> wrote:

> On Wed, Jun 29, 2022 at 10:39:10PM +0200, Marcus Folkesson wrote:
> > The core sets INDIO_BUFFER_TRIGGERED as part of
> > devm_iio_triggered_buffer_setup().
> > 
> > Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>  
> 
> Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
> 
Applied,

Thanks,

Jonathan

> Thank you!
> 
> > ---
> >  drivers/iio/adc/ti-tsc2046.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/iio/adc/ti-tsc2046.c b/drivers/iio/adc/ti-tsc2046.c
> > index 55b35570ad8b..0d9436a69cbf 100644
> > --- a/drivers/iio/adc/ti-tsc2046.c
> > +++ b/drivers/iio/adc/ti-tsc2046.c
> > @@ -776,7 +776,7 @@ static int tsc2046_adc_probe(struct spi_device *spi)
> >  	priv->spi = spi;
> >  
> >  	indio_dev->name = TI_TSC2046_NAME;
> > -	indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED;
> > +	indio_dev->modes = INDIO_DIRECT_MODE;
> >  	indio_dev->channels = dcfg->channels;
> >  	indio_dev->num_channels = dcfg->num_channels;
> >  	indio_dev->info = &tsc2046_adc_info;
> > -- 
> > 2.36.1
> > 
> > 
> >   
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-01 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 20:39 [PATCH] iio: adc: ti-tsc2046: do not explicity set INDIO_BUFFER_TRIGGERED mode Marcus Folkesson
2022-06-30  5:07 ` Oleksij Rempel
2022-07-01 16:50   ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.