[media] ov7670: allow configuration of image size, clock speed, and I/O method
authorDaniel Drake <dsd@laptop.org>
Tue, 19 Oct 2010 21:24:05 +0000 (18:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 23 Oct 2010 15:09:23 +0000 (13:09 -0200)
commit75e2bdad8901a0b599e01a96229be922eef1e488
tree6839dfdef15550a3eac76932a15d9a3da943e334
parentf8c612744359179c6c90faccb6b0ca185cb65d15
[media] ov7670: allow configuration of image size, clock speed, and I/O method

These parameters need to be configurable based on the host system.
They can now be communicated through the s_config call.

The old CONFIG_OLPC_XO_1 selector was not correct; this kind of
arrangement wouldn't allow for a universal kernel that would work on both
laptops.

Certain parts of the probe routine had to be moved later (into s_config),
because we can't do any I/O until we know which I/O method has been
selected through this mechanism.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ov7670.c
drivers/media/video/ov7670.h [new file with mode: 0644]