upstream: [media] saa7115: move the autodetection code out of the probe function
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Apr 2013 13:22:47 +0000 (10:22 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:58 +0000 (11:47 +0900)
commitaa885eceb2931a433bee3fbe7f3dd73fdd140df8
treea5fb2a5b4e2d5bece2b0b739c1f433b3c9c28a13
parentc523e2e096212db8dd70f1863df0d74e11f66249
upstream: [media] saa7115: move the autodetection code out of the probe function

As we're now seeing other variants from chinese clones, like
gm1113c, we'll need to add more bits at the detection code.
So, move it into a separate function.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Jon Arne Jørgensen <jonarne@jonarne.no>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/saa7115.c