diff options
| author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2020-03-16 17:39:07 +0100 |
|---|---|---|
| committer | Emil Velikov <emil.l.velikov@gmail.com> | 2020-05-17 21:29:41 +0100 |
| commit | a519f6d03f4c497d02c7915fc33eb2b194ee048d (patch) | |
| tree | 5d7b2ca2b8037d7ab97ef1c7a76dc6804f378dd0 /tools/perf/scripts/python | |
| parent | 683c09e9a8e1008b72fc23f6e99687eed59cfa49 (diff) | |
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
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
