* [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver
@ 2014-01-07 22:29 Peter Meerwald
2014-01-07 22:29 ` [PATCH 2/2] iio: Remove obsolete variable in tcs3472 driver Peter Meerwald
2014-01-11 11:52 ` [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver Jonathan Cameron
0 siblings, 2 replies; 4+ messages in thread
From: Peter Meerwald @ 2014-01-07 22:29 UTC (permalink / raw)
To: linux-iio; +Cc: Peter Meerwald
len variable become obsolete with
iio_push_to_buffers_with_timestamp()
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
drivers/iio/light/adjd_s311.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c
index f306847..1d8ecb7 100644
--- a/drivers/iio/light/adjd_s311.c
+++ b/drivers/iio/light/adjd_s311.c
@@ -120,7 +120,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
struct iio_dev *indio_dev = pf->indio_dev;
struct adjd_s311_data *data = iio_priv(indio_dev);
s64 time_ns = iio_get_time_ns();
- int len = 0;
int i, j = 0;
int ret = adjd_s311_req_data(indio_dev);
@@ -135,7 +134,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
goto done;
data->buffer[j++] = ret & ADJD_S311_DATA_MASK;
- len += 2;
}
iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, time_ns);
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] iio: Remove obsolete variable in tcs3472 driver
2014-01-07 22:29 [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver Peter Meerwald
@ 2014-01-07 22:29 ` Peter Meerwald
2014-01-11 11:52 ` Jonathan Cameron
2014-01-11 11:52 ` [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver Jonathan Cameron
1 sibling, 1 reply; 4+ messages in thread
From: Peter Meerwald @ 2014-01-07 22:29 UTC (permalink / raw)
To: linux-iio; +Cc: Peter Meerwald
len variable became obsolete with
iio_push_to_buffers_with_timestamp()
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
drivers/iio/light/tcs3472.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c
index 887fecf..fe063a0 100644
--- a/drivers/iio/light/tcs3472.c
+++ b/drivers/iio/light/tcs3472.c
@@ -179,7 +179,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p)
struct iio_poll_func *pf = p;
struct iio_dev *indio_dev = pf->indio_dev;
struct tcs3472_data *data = iio_priv(indio_dev);
- int len = 0;
int i, j = 0;
int ret = tcs3472_req_data(data);
@@ -194,7 +193,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p)
goto done;
data->buffer[j++] = ret;
- len += 2;
}
iio_push_to_buffers_with_timestamp(indio_dev, data->buffer,
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver
2014-01-07 22:29 [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver Peter Meerwald
2014-01-07 22:29 ` [PATCH 2/2] iio: Remove obsolete variable in tcs3472 driver Peter Meerwald
@ 2014-01-11 11:52 ` Jonathan Cameron
1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2014-01-11 11:52 UTC (permalink / raw)
To: Peter Meerwald, linux-iio
On 07/01/14 22:29, Peter Meerwald wrote:
> len variable become obsolete with
> iio_push_to_buffers_with_timestamp()
>
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the togreg branch of iio.git.
Thanks
> ---
> drivers/iio/light/adjd_s311.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c
> index f306847..1d8ecb7 100644
> --- a/drivers/iio/light/adjd_s311.c
> +++ b/drivers/iio/light/adjd_s311.c
> @@ -120,7 +120,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
> struct iio_dev *indio_dev = pf->indio_dev;
> struct adjd_s311_data *data = iio_priv(indio_dev);
> s64 time_ns = iio_get_time_ns();
> - int len = 0;
> int i, j = 0;
>
> int ret = adjd_s311_req_data(indio_dev);
> @@ -135,7 +134,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
> goto done;
>
> data->buffer[j++] = ret & ADJD_S311_DATA_MASK;
> - len += 2;
> }
>
> iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, time_ns);
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] iio: Remove obsolete variable in tcs3472 driver
2014-01-07 22:29 ` [PATCH 2/2] iio: Remove obsolete variable in tcs3472 driver Peter Meerwald
@ 2014-01-11 11:52 ` Jonathan Cameron
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2014-01-11 11:52 UTC (permalink / raw)
To: Peter Meerwald, linux-iio
On 07/01/14 22:29, Peter Meerwald wrote:
> len variable became obsolete with
> iio_push_to_buffers_with_timestamp()
>
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the togreg branch of iio.git.
Thanks,
> ---
> drivers/iio/light/tcs3472.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c
> index 887fecf..fe063a0 100644
> --- a/drivers/iio/light/tcs3472.c
> +++ b/drivers/iio/light/tcs3472.c
> @@ -179,7 +179,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p)
> struct iio_poll_func *pf = p;
> struct iio_dev *indio_dev = pf->indio_dev;
> struct tcs3472_data *data = iio_priv(indio_dev);
> - int len = 0;
> int i, j = 0;
>
> int ret = tcs3472_req_data(data);
> @@ -194,7 +193,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p)
> goto done;
>
> data->buffer[j++] = ret;
> - len += 2;
> }
>
> iio_push_to_buffers_with_timestamp(indio_dev, data->buffer,
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-11 11:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-07 22:29 [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver Peter Meerwald
2014-01-07 22:29 ` [PATCH 2/2] iio: Remove obsolete variable in tcs3472 driver Peter Meerwald
2014-01-11 11:52 ` Jonathan Cameron
2014-01-11 11:52 ` [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver Jonathan Cameron
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).