projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1fe2e7
)
drm/i2c/tda998x: convert to use i2c_new_client_device()
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Thu, 26 Mar 2020 21:10:02 +0000
(22:10 +0100)
committer
Sam Ravnborg
<sam@ravnborg.org>
Sat, 28 Mar 2020 21:48:12 +0000
(22:48 +0100)
Move away from the deprecated API and return the shiny new ERRPTR where
useful.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20200326211005.13301-5-wsa+renesas@sang-engineering.com
drivers/gpu/drm/i2c/tda998x_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i2c/tda998x_drv.c
b/drivers/gpu/drm/i2c/tda998x_drv.c
index c3332209f27a8dc982eafaaedbbd3dce9ac80935..d9a548d0273c3a1ca39213bd65f043668272a446 100644
(file)
--- a/
drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/
drivers/gpu/drm/i2c/tda998x_drv.c
@@
-1949,9
+1949,9
@@
static int tda998x_create(struct device *dev)
cec_info.platform_data = &priv->cec_glue;
cec_info.irq = client->irq;
- priv->cec = i2c_new_device(client->adapter, &cec_info);
- if (
!priv->cec
) {
- ret =
-ENODEV
;
+ priv->cec = i2c_new_
client_
device(client->adapter, &cec_info);
+ if (
IS_ERR(priv->cec)
) {
+ ret =
PTR_ERR(priv->cec)
;
goto fail;
}