3.Are there any tutorials/pdfs to understand camera drivers in linux kernel.
What is wrong with the code itself?
Please provide a more thoughtful answer. At least say if that's your
tried-and-true approach or if it's a suggestion to look into the code.
Ricardo.