diff options
| author | Andrzej Pietrasiewicz <[email protected]> | 2019-07-26 19:22:55 +0200 |
|---|---|---|
| committer | Neil Armstrong <[email protected]> | 2019-07-31 16:26:33 +0200 |
| commit | e1a29c6c59553d80a8e17d63494c65a13fb8e241 (patch) | |
| tree | abe2bf68a25b1c6894b75ce39764a34d24de5491 /tools/perf/scripts/python/stat-cpi.py | |
| parent | 77b8cabf3d529725e59b71671a562556f6c84446 (diff) | |
drm: Add ddc link in sysfs created by drm_connector
Add generic code which creates symbolic links in sysfs, pointing to ddc
interface used by a particular video output. For example:
ls -l /sys/class/drm/card0-HDMI-A-1/ddc
lrwxrwxrwx 1 root root 0 Jun 24 10:42 /sys/class/drm/card0-HDMI-A-1/ddc \
-> ../../../../soc/13880000.i2c/i2c-2
This makes it easy for user to associate a display with its ddc adapter
and use e.g. ddcutil to control the chosen monitor.
This patch adds an i2c_adapter pointer to struct drm_connector. Particular
drivers can then use it instead of using their own private instance. If a
connector contains a ddc, then create a symbolic link in sysfs.
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Reviewed-by: Andrzej Hajda <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Sam Ravnborg <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/d470def6cd661b777faeee67b5838a4623c4010e.1564161140.git.andrzej.p@collabora.com
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions