<div dir="ltr">From 10b677e995ab1f32df79896dbdb7cda779d3f798 Mon Sep 17 00:00:00 2001<br>From: Zhiming Liu <<a href="mailto:lzmlzmhh@gmail.com">lzmlzmhh@gmail.com</a>><br>Date: Thu, 13 Jan 2022 19:09:37 +0800<br>Subject: [PATCH v2] Signed-off-by: Zhiming Liu <<a href="mailto:lzmlzmhh@gmail.com">lzmlzmhh@gmail.com</a>><br><br>bridge : drm : Remove extra device acquisition method of i2c client in lt9611 driver.<br><br>We have get the device of i2c client in probe function.So we should<br>remove extra device acquisition method of i2c client in lt9611 driver.<br>---<br> drivers/gpu/drm/bridge/lontium-lt9611.c | 4 ++--<br> drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 4 ++--<br> 2 files changed, 4 insertions(+), 4 deletions(-)<br><br>diff --git a/drivers/gpu/drm/bridge/lontium-lt9611.c b/drivers/gpu/drm/bridge/lontium-lt9611.c<br>index dafb1b47c15f..feb128a4557d 100644<br>--- a/drivers/gpu/drm/bridge/lontium-lt9611.c<br>+++ b/drivers/gpu/drm/bridge/lontium-lt9611.c<br>@@ -1090,7 +1090,7 @@ static int lt9611_probe(struct i2c_client *client,<br> if (!lt9611)<br> return -ENOMEM;<br> <br>- lt9611->dev = &client->dev;<br>+ lt9611->dev = dev;<br> lt9611->client = client;<br> lt9611->sleep = false;<br> <br>@@ -1100,7 +1100,7 @@ static int lt9611_probe(struct i2c_client *client,<br> return PTR_ERR(lt9611->regmap);<br> }<br> <br>- ret = lt9611_parse_dt(&client->dev, lt9611);<br>+ ret = lt9611_parse_dt(dev, lt9611);<br> if (ret) {<br> dev_err(dev, "failed to parse device tree\n");<br> return ret;<br>diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c<br>index 33f9716da0ee..3d62e6bf6892 100644<br>--- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c<br>+++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c<br>@@ -860,7 +860,7 @@ static int lt9611uxc_probe(struct i2c_client *client,<br> if (!lt9611uxc)<br> return -ENOMEM;<br> <br>- lt9611uxc->dev = &client->dev;<br>+ lt9611uxc->dev = dev;<br> lt9611uxc->client = client;<br> mutex_init(<9611uxc->ocm_lock);<br> <br>@@ -870,7 +870,7 @@ static int lt9611uxc_probe(struct i2c_client *client,<br> return PTR_ERR(lt9611uxc->regmap);<br> }<br> <br>- ret = lt9611uxc_parse_dt(&client->dev, lt9611uxc);<br>+ ret = lt9611uxc_parse_dt(dev, lt9611uxc);<br> if (ret) {<br> dev_err(dev, "failed to parse device tree\n");<br> return ret;<br>-- <br>2.25.1<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Robert Foss <<a href="mailto:robert.foss@linaro.org">robert.foss@linaro.org</a>> 于2022年1月13日周四 18:14写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Thanks for submitting this cleanup patch.<br>
<br>
On Tue, 11 Jan 2022 at 04:41, lzmlzm <<a href="mailto:lzmlzmhh@gmail.com" target="_blank">lzmlzmhh@gmail.com</a>> wrote:<br>
><br>
<br>
A commit message is necessary for all changes, no matter how trivial.<br>
<br>
> Signed-off-by: lzmlzm <<a href="mailto:lzmlzmhh@gmail.com" target="_blank">lzmlzmhh@gmail.com</a>><br>
<br>
Is your name listed correctly above? For the 'Signed-off-by' tag to be<br>
meaningful, a real name needs to be supplied.<br>
<br>
> ---<br>
> drivers/gpu/drm/bridge/lontium-lt9611.c | 2 +-<br>
> drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 2 +-<br>
> 2 files changed, 2 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/bridge/lontium-lt9611.c b/drivers/gpu/drm/bridge/lontium-lt9611.c<br>
> index dafb1b47c15f..e0feb4fd9780 100644<br>
> --- a/drivers/gpu/drm/bridge/lontium-lt9611.c<br>
> +++ b/drivers/gpu/drm/bridge/lontium-lt9611.c<br>
> @@ -1090,7 +1090,7 @@ static int lt9611_probe(struct i2c_client *client,<br>
> if (!lt9611)<br>
> return -ENOMEM;<br>
><br>
> - lt9611->dev = &client->dev;<br>
> + lt9611->dev = dev;<br>
> lt9611->client = client;<br>
> lt9611->sleep = false;<br>
><br>
> diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c<br>
> index 33f9716da0ee..e50e42312e82 100644<br>
> --- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c<br>
> +++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c<br>
> @@ -860,7 +860,7 @@ static int lt9611uxc_probe(struct i2c_client *client,<br>
> if (!lt9611uxc)<br>
> return -ENOMEM;<br>
><br>
> - lt9611uxc->dev = &client->dev;<br>
> + lt9611uxc->dev = dev;<br>
> lt9611uxc->client = client;<br>
> mutex_init(<9611uxc->ocm_lock);<br>
><br>
> --<br>
<br>
With these two issues fixed, please submit a v2 of this patch.<br>
<br>
<br>
Rob.<br>
</blockquote></div>