linux/drivers/media/cec
Hans Verkuil 28e11b15b6 media: cec: replace pin->cur_value by adap->cec_pin_is_high
The current CEC pin value (0 or 1) was part of the cec_pin struct,
but that assumes that CEC pin monitoring can only be used with
a driver that uses the low-level CEC pin framework.

But hardware that has both a high-level API and can monitor the
CEC pin at low-level at the same time does not need to depend on
the cec pin framework.

To support such devices remove the cur_value field from struct cec_pin
and add a cec_pin_is_high field to cec_adapter. This also makes it
possible to drop the '#ifdef CONFIG_CEC_PIN' in cec-api.c.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-26 08:35:10 -04:00
..
cec-adap.c media: cec: ensure that adap_enable(false) is called from cec_delete_adapter() 2017-08-26 08:32:15 -04:00
cec-api.c media: cec: replace pin->cur_value by adap->cec_pin_is_high 2017-08-26 08:35:10 -04:00
cec-core.c media: cec: replace pin->cur_value by adap->cec_pin_is_high 2017-08-26 08:35:10 -04:00
cec-edid.c [media] cec.h: merge cec-edid.h into cec.h 2017-04-19 06:53:18 -03:00
cec-notifier.c media: cec-notifier: small improvements 2017-07-26 05:46:44 -04:00
cec-pin.c media: cec: replace pin->cur_value by adap->cec_pin_is_high 2017-08-26 08:35:10 -04:00
cec-priv.h
Kconfig media fixes for v4.12-rc4 2017-06-07 07:50:49 -03:00
Makefile media: cec-pin: add low-level pin hardware support 2017-07-18 12:57:18 -03:00