projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3605629
)
i2c: xiic: convert to use i2c_new_client_device()
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Tue, 7 Jan 2020 17:47:41 +0000
(18:47 +0100)
committer
Wolfram Sang
<wsa@the-dreams.de>
Wed, 15 Jan 2020 19:39:47 +0000
(20:39 +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: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xiic.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-xiic.c
b/drivers/i2c/busses/i2c-xiic.c
index d8d49f1814c7e10c4f7f9b401a249242ac2bde8f..61e081b186cc6bbb7675adee7fee8351692eab5a 100644
(file)
--- a/
drivers/i2c/busses/i2c-xiic.c
+++ b/
drivers/i2c/busses/i2c-xiic.c
@@
-806,7
+806,7
@@
static int xiic_i2c_probe(struct platform_device *pdev)
if (pdata) {
/* add in known devices to the bus */
for (i = 0; i < pdata->num_devices; i++)
- i2c_new_device(&i2c->adap, pdata->devices + i);
+ i2c_new_
client_
device(&i2c->adap, pdata->devices + i);
}
return 0;