diff options
author | Pin-yen Lin <treapking@chromium.org> | 2023-07-18 14:04:05 +0300 |
---|---|---|
committer | Robert Foss <rfoss@kernel.org> | 2023-07-24 11:38:02 +0300 |
commit | d65feac281ab479c679e0d5d2e44c3ac98eb8707 (patch) | |
tree | 59d478e4d246c2f6ac2c13a5e704068e353f01a1 /drivers/gpu/drm/bridge/analogix/anx7625.h | |
parent | dd9c1329027d1f037f61bcad6629397dadab66df (diff) | |
download | linux-d65feac281ab479c679e0d5d2e44c3ac98eb8707.tar.xz |
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: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230718110407.1005200-1-wenst@chromium.org
Diffstat (limited to 'drivers/gpu/drm/bridge/analogix/anx7625.h')
-rw-r--r-- | drivers/gpu/drm/bridge/analogix/anx7625.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.h b/drivers/gpu/drm/bridge/analogix/anx7625.h index 14f33d6be289..5af819611ebc 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.h +++ b/drivers/gpu/drm/bridge/analogix/anx7625.h @@ -458,7 +458,7 @@ struct anx7625_data { int hdcp_cp; /* Lock for work queue */ struct mutex lock; - struct i2c_client *client; + struct device *dev; struct anx7625_i2c_client i2c; struct i2c_client *last_client; struct timer_list hdcp_timer; |