]> git.baikalelectronics.ru Git - 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)
commit29ce3d6943c9668fca676a15994c72752b1ce39e
tree079fdc7287ce4c88ef4554db2a4f634cfaf50d0c
parentc27fc909bb0e60d96dbc36fd8500cbce6013e5d9
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