Wolfram Sang a519f6d03f drm: encoder_slave: use new I2C API
i2c_new_client() is deprecated, use the replacement
i2c_new_client_device(). Also, we have a helper to check if a driver is
bound. Use it to simplify the code. Note that this changes the errno for
a failed device creation from ENOMEM to ENODEV. No callers currently
interpret this errno, though, so we use this condensed error check.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200316163907.13709-3-wsa+renesas@sang-engineering.com
2020-05-17 21:29:41 +01:00
..
2020-04-30 15:08:58 -04:00
2020-04-28 16:04:00 +02:00
2020-04-28 16:13:03 +02:00
2020-04-02 14:16:44 +02:00
2020-04-21 09:02:29 +02:00
2020-04-29 18:44:26 +03:00
2020-04-02 14:16:44 +02:00
2020-04-24 20:51:24 +08:00
2020-04-17 08:12:22 +02:00
2020-03-12 12:42:56 +10:00
2020-04-03 17:11:41 +02:00
2020-04-02 14:16:45 +02:00
2020-04-02 14:16:45 +02:00
2020-04-28 16:05:15 +02:00
2020-04-17 08:12:22 +02:00
2020-04-28 15:15:59 +02:00
2020-04-17 08:12:22 +02:00
2020-03-26 15:45:36 +01:00
2020-04-17 08:12:22 +02:00
2020-04-02 14:16:46 +02:00
2020-04-03 17:11:41 +02:00
2020-03-11 07:27:21 +10:00
2020-04-03 17:11:41 +02:00
2020-04-28 15:05:19 +02:00
2020-04-29 18:44:26 +03:00
2020-03-16 09:27:09 +01:00
2020-04-29 18:44:26 +03:00
2020-04-03 17:11:41 +02:00
2020-03-18 14:48:34 +01:00
2020-04-28 16:05:15 +02:00
2020-04-28 16:05:15 +02:00