From: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
To: Andy Yeh <andy.yeh@intel.com>
Cc: linux-media@vger.kernel.org, sakari.ailus@linux.intel.com,
devicetree@vger.kernel.org, tfiga@chromium.org,
jacopo@jmondi.org, Alan Chiang <alanx.chiang@intel.com>
Subject: Re: [RESEND PATCH v9 2/2] media: dw9807: Add dw9807 vcm driver
Date: Wed, 9 May 2018 16:03:32 -0300 [thread overview]
Message-ID: <20180509160332.75c1eb1b@vento.lan> (raw)
In-Reply-To: <1525276428-17379-3-git-send-email-andy.yeh@intel.com>
Em Wed, 2 May 2018 23:53:48 +0800
Andy Yeh <andy.yeh@intel.com> escreveu:
> From: Alan Chiang <alanx.chiang@intel.com>
>
> DW9807 is a 10 bit DAC from Dongwoon, designed for linear
> control of voice coil motor.
>
> This driver creates a V4L2 subdevice and
> provides control to set the desired focus.
>
> Signed-off-by: Andy Yeh <andy.yeh@intel.com>
> Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> Reviewed-by: Tomasz Figa <tfiga@chromium.org>
> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
> Acked-by: Rob Herring <robh@kernel.org>
This adds a new warning.
Thanks,
Mauro
drivers/media/i2c/dw9807.c: In function 'dw9807_set_dac':
drivers/media/i2c/dw9807.c:81:16: warning: unused variable 'retry' [-Wunused-variable]
int val, ret, retry = 0;
^
Please either fix or fold the following patch.
diff --git a/drivers/media/i2c/dw9807.c b/drivers/media/i2c/dw9807.c
index 28ede2b47acf..6ebb98717fb1 100644
--- a/drivers/media/i2c/dw9807.c
+++ b/drivers/media/i2c/dw9807.c
@@ -78,7 +78,7 @@ static int dw9807_set_dac(struct i2c_client *client, u16 data)
const char tx_data[3] = {
DW9807_MSB_ADDR, ((data >> 8) & 0x03), (data & 0xff)
};
- int val, ret, retry = 0;
+ int val, ret;
/*
* According to the datasheet, need to check the bus status before we
next prev parent reply other threads:[~2018-05-09 19:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-02 15:53 [RESEND PATCH v9 0/2] DW9807 DT binding and driver patches Andy Yeh
2018-05-02 15:53 ` [RESEND PATCH v9 1/2] media: dt-bindings: Add bindings for Dongwoon DW9807 voice coil Andy Yeh
2018-05-02 21:36 ` Sakari Ailus
2018-05-03 7:31 ` Yeh, Andy
2018-05-08 5:36 ` Yeh, Andy
2018-05-08 9:02 ` Sakari Ailus
2018-05-02 15:53 ` [RESEND PATCH v9 2/2] media: dw9807: Add dw9807 vcm driver Andy Yeh
2018-05-09 19:03 ` Mauro Carvalho Chehab [this message]
2018-05-16 15:28 ` Yeh, Andy
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=20180509160332.75c1eb1b@vento.lan \
--to=mchehab+samsung@kernel.org \
--cc=alanx.chiang@intel.com \
--cc=andy.yeh@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=jacopo@jmondi.org \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=tfiga@chromium.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).