summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/nau7802.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-11-05 17:07:03 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-11-05 17:40:23 +1100
commit2c9627cca471e0862cffda3c53b0f8071b5b746c (patch)
tree0006405adcc7a8b7f9b56f69934fc656d1936f2d /drivers/iio/adc/nau7802.c
parent13c28e694d445896e55c133c63050b4d6d0a2b96 (diff)
tree-wide: use reinit_completion instead of INIT_COMPLETION
Use this new function to make code more comprehensible, since we are reinitialzing the completion, not initializing. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> (personally at LCE13) Cc: Ingo Molnar <mingo@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/iio/adc/nau7802.c')
-rw-r--r--drivers/iio/adc/nau7802.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/nau7802.c b/drivers/iio/adc/nau7802.c
index 54c5babe6746..e525aa6475c4 100644
--- a/drivers/iio/adc/nau7802.c
+++ b/drivers/iio/adc/nau7802.c
@@ -190,7 +190,7 @@ static int nau7802_read_irq(struct iio_dev *indio_dev,
struct nau7802_state *st = iio_priv(indio_dev);
int ret;
- INIT_COMPLETION(st->value_ok);
+ reinit_completion(&st->value_ok);
enable_irq(st->client->irq);
nau7802_sync(st);