]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/bridge: analogix-anx78xx: convert to i2c_new_dummy_device
authorBrian Masney <masneyb@onstation.org>
Thu, 15 Aug 2019 00:48:47 +0000 (20:48 -0400)
committerAndrzej Hajda <a.hajda@samsung.com>
Mon, 16 Sep 2019 09:17:00 +0000 (11:17 +0200)
commit2f932367d219ad4ce56278035a1ee1ca03c48308
tree079fdc7287ce4c88ef4554db2a4f634cfaf50d0c
parent2708e876272d89bbbff811d12834adbeef85f022
drm/bridge: analogix-anx78xx: convert to i2c_new_dummy_device

The i2c_new_dummy() function is deprecated since it returns NULL on
error. Change this to use the recommended replacement
i2c_new_dummy_device() that returns an error code that can be read with
PTR_ERR() and friends.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190815004854.19860-5-masneyb@onstation.org
drivers/gpu/drm/bridge/analogix-anx78xx.c