Skip to contentSkip to conversation

iio:adc: Drop false comment about lack of timestamp control

PATCH In review Jonathan Cameron 2 participants 3 messages Apr 1, 2021 – Apr 2, 2021

Subsystems (2)
lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

PATCH 1/1 iio:adc: Drop false comment about lack of timestamp control

From: Jonathan Cameron <[email protected]>

The timestamp control has been a function implemented in the core of IIO for a long time, so this comment is incorrect and has clearly been cut and paste into all these drivers.

The remainder of the comment added nothing and was confusing so dropped that as well.

Cc Lars-Peter Clausen <[email protected]>
Cc Michael Hennerich <[email protected]>
---
 drivers/iio/adc/ad7298.c | 6 ------
 drivers/iio/adc/ad7887.c | 6 ------
 drivers/iio/adc/ad7923.c | 6 ------
 drivers/iio/adc/ad799x.c | 6 ------
 4 files changed, 24 deletions(-)
drivers/iio/adc/ad7298.c +0 -6
index 689ecd5dd563..d2163cb62f4f 100644
@@ -142,12 +142,6 @@ static int ad7298_update_scan_mode(struct iio_dev *indio_dev,
 	return 0;
 }
 
-/*
- * ad7298_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- */
 static irqreturn_t ad7298_trigger_handler(int irq, void *p)
 {
 	struct iio_poll_func *pf = p;
drivers/iio/adc/ad7887.c +0 -6
index 4f6f0e0e03ee..9b3cbe1ddc6f 100644
@@ -109,12 +109,6 @@ static int ad7887_ring_postdisable(struct iio_dev *indio_dev)
 	return spi_sync(st->spi, &st->msg[AD7887_CH0]);
 }
 
-/*
- * ad7887_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- **/
 static irqreturn_t ad7887_trigger_handler(int irq, void *p)
 {
 	struct iio_poll_func *pf = p;
drivers/iio/adc/ad7923.c +0 -6
index 287f4c13194e..9a649745cd0a 100644
@@ -192,12 +192,6 @@ static int ad7923_update_scan_mode(struct iio_dev *indio_dev,
 	return 0;
 }
 
-/*
- * ad7923_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- */
 static irqreturn_t ad7923_trigger_handler(int irq, void *p)
 {
 	struct iio_poll_func *pf = p;
drivers/iio/adc/ad799x.c +0 -6
index 1575b7670207..18bf8386d50a 100644
@@ -182,12 +182,6 @@ static int ad799x_update_config(struct ad799x_state *st, u16 config)
 	return 0;
 }
 
-/*
- * ad799x_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- **/
 static irqreturn_t ad799x_trigger_handler(int irq, void *p)
 {
 	struct iio_poll_func *pf = p;
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

The timestamp control has been a function implemented in the core of IIO for a long time, so this comment is incorrect and has clearly been cut and paste into all these drivers.

The remainder of the comment added nothing and was confusing so dropped that as well.

Quoted 82 lines
Cc Lars-Peter Clausen <[email protected]>
Cc Michael Hennerich <[email protected]>
---
 drivers/iio/adc/ad7298.c | 6 ------
 drivers/iio/adc/ad7887.c | 6 ------
 drivers/iio/adc/ad7923.c | 6 ------
 drivers/iio/adc/ad799x.c | 6 ------
 4 files changed, 24 deletions(-)
drivers/iio/adc/ad7298.c +0 -6
index 689ecd5dd563..d2163cb62f4f 100644
@@ -142,12 +142,6 @@ static int ad7298_update_scan_mode(struct iio_dev *indio_dev,
        return 0;
 }
 
-/*
- * ad7298_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- */
 static irqreturn_t ad7298_trigger_handler(int irq, void *p)
 {
        struct iio_poll_func *pf = p;
drivers/iio/adc/ad7887.c +0 -6
index 4f6f0e0e03ee..9b3cbe1ddc6f 100644
@@ -109,12 +109,6 @@ static int ad7887_ring_postdisable(struct iio_dev *indio_dev)
        return spi_sync(st->spi, &st->msg[AD7887_CH0]);
 }
 
-/*
- * ad7887_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- **/
 static irqreturn_t ad7887_trigger_handler(int irq, void *p)
 {
        struct iio_poll_func *pf = p;
drivers/iio/adc/ad7923.c +0 -6
index 287f4c13194e..9a649745cd0a 100644
@@ -192,12 +192,6 @@ static int ad7923_update_scan_mode(struct iio_dev *indio_dev,
        return 0;
 }
 
-/*
- * ad7923_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- */
 static irqreturn_t ad7923_trigger_handler(int irq, void *p)
 {
        struct iio_poll_func *pf = p;
drivers/iio/adc/ad799x.c +0 -7
index 1575b7670207..18bf8386d50a 100644
@@ -182,12 +182,6 @@ static int ad799x_update_config(struct ad799x_state *st, u16 config)
        return 0;
 }
 
-/*
- * ad799x_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- **/
 static irqreturn_t ad799x_trigger_handler(int irq, void *p)
 {
        struct iio_poll_func *pf = p;
--

2.31.1

author maintainer
#2 lore raw
Quoted 8 lines · On Fri, 2 Apr 2021 10:25:41 +0300 Alexandru Ardelean <[email protected]>…
Quoted 7 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

The timestamp control has been a function implemented in the core of IIO for a long time, so this comment is incorrect and has clearly been cut and paste into all these drivers.

Quoted 5 lines
Quoted 3 lines

The remainder of the comment added nothing and was confusing so dropped that as well.

Applied to the togreg branch of iio.git and push out testing for all the normal reasons.

Thanks,

Jonathan

Quoted 83 lines
Quoted 83 lines
Cc Lars-Peter Clausen <[email protected]>
Cc Michael Hennerich <[email protected]>
---
 drivers/iio/adc/ad7298.c | 6 ------
 drivers/iio/adc/ad7887.c | 6 ------
 drivers/iio/adc/ad7923.c | 6 ------
 drivers/iio/adc/ad799x.c | 6 ------
 4 files changed, 24 deletions(-)
drivers/iio/adc/ad7298.c +0 -6
index 689ecd5dd563..d2163cb62f4f 100644
@@ -142,12 +142,6 @@ static int ad7298_update_scan_mode(struct iio_dev *indio_dev,
        return 0;
 }
 
-/*
- * ad7298_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- */
 static irqreturn_t ad7298_trigger_handler(int irq, void *p)
 {
        struct iio_poll_func *pf = p;
drivers/iio/adc/ad7887.c +0 -6
index 4f6f0e0e03ee..9b3cbe1ddc6f 100644
@@ -109,12 +109,6 @@ static int ad7887_ring_postdisable(struct iio_dev *indio_dev)
        return spi_sync(st->spi, &st->msg[AD7887_CH0]);
 }
 
-/*
- * ad7887_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- **/
 static irqreturn_t ad7887_trigger_handler(int irq, void *p)
 {
        struct iio_poll_func *pf = p;
drivers/iio/adc/ad7923.c +0 -6
index 287f4c13194e..9a649745cd0a 100644
@@ -192,12 +192,6 @@ static int ad7923_update_scan_mode(struct iio_dev *indio_dev,
        return 0;
 }
 
-/*
- * ad7923_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- */
 static irqreturn_t ad7923_trigger_handler(int irq, void *p)
 {
        struct iio_poll_func *pf = p;
drivers/iio/adc/ad799x.c +0 -7
index 1575b7670207..18bf8386d50a 100644
@@ -182,12 +182,6 @@ static int ad799x_update_config(struct ad799x_state *st, u16 config)
        return 0;
 }
 
-/*
- * ad799x_trigger_handler() bh of trigger launched polling to ring buffer
- *
- * Currently there is no option in this driver to disable the saving of
- * timestamps within the ring.
- **/
 static irqreturn_t ad799x_trigger_handler(int irq, void *p)
 {
        struct iio_poll_func *pf = p;
--

2.31.1