[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)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 21 May 2013 11:24:08 +0000 (08:24 -0300)
commite090901e48ba75508caaa1b98fdbb65591c1163f
tree032de61314afa37a1bb2b6b6e5fca76bfe71447e
parent5255e4d9dfe2e33a5d68c54f6d1bee28fc5edd66
[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