media: ddbridge/ci: further deduplicate code/logic in ddb_ci_attach()
authorDaniel Scheller <d.scheller@gmx.net>
Thu, 8 Feb 2018 19:53:12 +0000 (14:53 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 13:42:59 +0000 (08:42 -0500)
commit9403f089bfa0536dbad1a28419aff037dc575c3d
tree0b017fed42bce8671507d1213ef8b57423e91f93
parente2ce49468a14d5c1543bfd60385ff47b8aebfb0c
media: ddbridge/ci: further deduplicate code/logic in ddb_ci_attach()

Deduplicate the checks for a valid ptr in port->en, and also handle the
default case to also catch eventually yet unsupported CI hardware.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ddbridge/ddbridge-ci.c