]> asedeno.scripts.mit.edu Git - linux.git/commit
media: cec-notifier: Get notifier by device and connector name
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 4 Jul 2018 15:08:16 +0000 (17:08 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 13 Jul 2018 07:44:16 +0000 (08:44 +0100)
commit7a78c1e116d2a786fcd541c8828472d462c8821f
tree1b0449e56bf312b0d1b1d50b652ee4a3476362f7
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
media: cec-notifier: Get notifier by device and connector name

In non device-tree world, we can need to get the notifier by the driver
name directly and eventually defer probe if not yet created.

This patch adds a variant of the get function by using the device name
instead and will not create a notifier if not yet created.

But the i915 driver exposes at least 2 HDMI connectors, this patch also
adds the possibility to add a connector name tied to the notifier device
to form a tuple and associate different CEC controllers for each HDMI
connectors.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/media/cec/cec-notifier.c
include/media/cec-notifier.h