OSDN Git Service

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)
commit7e86efa2ff03db92067b2f6f4fa3f1f8b8da7c76
treed09c07d18c292ae7d86ccd5c1eba3a89e3f6505b
parent98f290731fe3cec04a1ca0635ad2d5d175d77276
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