aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/cec/cec-pin.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2017-08-15 15:26:25 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 08:14:03 -0400
commit9a6b2a87405a5022660022722d4a830b768e8033 (patch)
tree78151072123289a354ac6b0e48ebb43dea0ff800 /drivers/media/cec/cec-pin.c
parentmedia: s5p-cec: use CEC_CAP_DEFAULTS (diff)
downloadlinux-dev-9a6b2a87405a5022660022722d4a830b768e8033.tar.xz
linux-dev-9a6b2a87405a5022660022722d4a830b768e8033.zip
media: cec: rename pin events/function
The CEC_EVENT_PIN_LOW/HIGH defines and the cec_queue_pin_event() function did not specify that these were about CEC pin events. Since in the future there will also be HPD pin events it is wise to rename the event defines and function to CEC_EVENT_PIN_CEC_LOW/HIGH and cec_queue_pin_cec_event() now before these become part of the ABI. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/cec/cec-pin.c')
-rw-r--r--drivers/media/cec/cec-pin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/cec/cec-pin.c b/drivers/media/cec/cec-pin.c
index 03f800e5ec1f..31a26d3b8bd8 100644
--- a/drivers/media/cec/cec-pin.c
+++ b/drivers/media/cec/cec-pin.c
@@ -609,8 +609,9 @@ static int cec_pin_thread_func(void *_adap)
while (atomic_read(&pin->work_pin_events)) {
unsigned int idx = pin->work_pin_events_rd;
- cec_queue_pin_event(adap, pin->work_pin_is_high[idx],
- pin->work_pin_ts[idx]);
+ cec_queue_pin_cec_event(adap,
+ pin->work_pin_is_high[idx],
+ pin->work_pin_ts[idx]);
pin->work_pin_events_rd = (idx + 1) % CEC_NUM_PIN_EVENTS;
atomic_dec(&pin->work_pin_events);
}