Commit d65feac2 authored by Pin-yen Lin's avatar Pin-yen Lin Committed by Robert Foss

drm/bridge: Remove redundant i2c_client in anx7625/it6505

These two drivers embed a i2c_client in their private driver data, but
only strict device is actually needed. Replace the i2c_client reference
with a struct device one.
Signed-off-by: default avatarPin-yen Lin <treapking@chromium.org>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarChen-Yu Tsai <wenst@chromium.org>
Signed-off-by: default avatarRobert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230718110407.1005200-1-wenst@chromium.org
parent dd9c1329
This diff is collapsed.
...@@ -458,7 +458,7 @@ struct anx7625_data { ...@@ -458,7 +458,7 @@ struct anx7625_data {
int hdcp_cp; int hdcp_cp;
/* Lock for work queue */ /* Lock for work queue */
struct mutex lock; struct mutex lock;
struct i2c_client *client; struct device *dev;
struct anx7625_i2c_client i2c; struct anx7625_i2c_client i2c;
struct i2c_client *last_client; struct i2c_client *last_client;
struct timer_list hdcp_timer; struct timer_list hdcp_timer;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment