linux/drivers/gpu/drm/i2c
Thierry Reding eb47fe8033 drm: Do not set connector->encoder in drivers
An encoder is associated with a connector by the DRM core as a result of
setting up a configuration. Drivers using the atomic or legacy helpers
should never set up this link, even if it is a static one.

While at it, try to catch this kind of error in the future by adding a
WARN_ON() in drm_mode_connector_attach_encoder(). Note that this doesn't
cover all the cases, since drivers could set this up after attaching.
Drivers that use the atomic helpers will get a warning later on, though,
so hopefully the two combined cover enough to help people avoid this in
the future.

Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Cc: Mark yao <mark.yao@rock-chips.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1447694393-24700-1-git-send-email-thierry.reding@gmail.com
2016-01-13 13:30:53 +01:00
..
adv7511.c drm/i2c/adv7511: Constify function pointer structs 2015-12-15 13:45:10 +01:00
adv7511.h drm: Add adv7511 encoder driver 2014-11-26 20:09:40 +02:00
ch7006_drv.c drm/i2c/ch7006: Constify function pointer structs 2015-12-15 13:43:49 +01:00
ch7006_mode.c drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[] 2015-09-08 13:45:53 +02:00
ch7006_priv.h drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[] 2015-09-08 13:45:53 +02:00
Kconfig drm: Add adv7511 encoder driver 2014-11-26 20:09:40 +02:00
Makefile drm: Add adv7511 encoder driver 2014-11-26 20:09:40 +02:00
sil164_drv.c drm/i2c/sil164: Constify function pointer structs 2015-12-15 13:45:19 +01:00
tda998x_drv.c drm: Do not set connector->encoder in drivers 2016-01-13 13:30:53 +01:00