]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec-gpio: add notifier support
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 19 Sep 2019 11:15:53 +0000 (08:15 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 20:21:14 +0000 (17:21 -0300)
commitceb5559848ba822bd863ca150682d52c6fd71f2b
treed09c07d18c292ae7d86ccd5c1eba3a89e3f6505b
parent093d887ab46580592ae999eb9e51e973e63f7aaf
media: cec-gpio: add notifier support

Add support for cec-notifier to the cec-gpio driver.

This makes it possible to associate the CEC gpio pin with an HDMI
connector. This feature was always documented in the cec-gpio bindings:

Documentation/devicetree/bindings/media/cec-gpio.txt

But support for the hdmi-phandle property was never actually implemented in
this driver.

This patch adds support for this property.

It also fixes a few incorrect error returns in the probe() function, which
skipped the call to cec_delete_adapter().

Tested on a Raspberry Pi 3B with a modified vc4 driver.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/Kconfig
drivers/media/platform/cec-gpio/cec-gpio.c