media: cec-pin: add error injection support
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 31 Oct 2017 13:55:09 +0000 (09:55 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Mar 2018 12:01:43 +0000 (08:01 -0400)
commit865463fc03ed6d1685d19dbef847b0e7abcc7fbf
treee88ad7e514941b3ffc1dc22eee7fe7f3aa028f70
parent22712b389e40ae0fa0526db8ca8b34bf8f787abf
media: cec-pin: add error injection support

Implement all the error injection commands.

The state machine gets new states for the various error situations,
helper functions are added to detect whether an error injection is
active and the actual error injections are implemented.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-pin-priv.h
drivers/media/cec/cec-pin.c