Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: don't link DP aux i2c adapter to the hardware device node

The i2c adapter on DP AUX is purely a software construct. Linking
it to the device node of the parent device is wrong, as it leads to
2 devices sharing the same device node, which is bad practice, as
well as the i2c trying to populate children of the i2c adapter by
looking at the child device nodes of the parent device.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170113173630.22138-1-l.stach@pengutronix.de

authored by

Lucas Stach and committed by
Andrzej Hajda
17ab7806 65c766ca

-1
-1
drivers/gpu/drm/drm_dp_helper.c
··· 1097 1097 aux->ddc.class = I2C_CLASS_DDC; 1098 1098 aux->ddc.owner = THIS_MODULE; 1099 1099 aux->ddc.dev.parent = aux->dev; 1100 - aux->ddc.dev.of_node = aux->dev->of_node; 1101 1100 1102 1101 strlcpy(aux->ddc.name, aux->name ? aux->name : dev_name(aux->dev), 1103 1102 sizeof(aux->ddc.name));