Friday 24 September 2010 08:54:20 Guennadi Liakhovetski napisał(a):
On Thu, 23 Sep 2010, Tony Lindgren wrote:
- Janusz Krzysztofik jkrzyszt@tis.icnet.pl [100923 16:37]:
Friday 24 September 2010 01:23:10 Tony Lindgren napisał(a):
I think you can just move the OMAP1_CAMERA_IOSIZE to the devices.c or someplace like that?
Tony, Not exactly. I use the OMAP1_CAMERA_IOSIZE inside the driver when reserving space for register cache.
I think that I could just duplicate its definition in the devices.c for now, than clean things up with a folloup patch when both parts already get merged. Would this be acceptable?
Yeah, that sounds good to me.
...better yet put a zero-length cache array at the end of your struct omap1_cam_dev and allocate it dynamically, calculated from the resource size.
Guennadi, Yes, this seems the best solution, thank you.
Tony, You'll soon get it as you ask: <media/camera.h> no longer included from <mach/camera.h>.
Thanks, Janusz