IMHO you need to check what sensor is used and then search the driver for 
it.
Each driver is using a bus, and in case with i2c devices  (or others) each 
device has its slave address. So there is not just a common info on all 
drivers, but rather each device has it's own complicated driver.
To find a particular driver (in case if the sources are available) you can 
download the kernel and via the gconfig ( make gconfig ) create the .config 
file in the kernel root directory. 
Open the created .config file (gedit .config), browse all the values with 
=y at the end and find your sensor.  

As you see it's pretty complicated, but possible. 


On Monday, December 16, 2013 5:31:30 PM UTC+1, Naveen Revanna wrote:
>
> I want to find out the device driver that will be loaded for the light 
> sensor device of nexus 7.  I tried the following
> 1. The light sensor device that is present on nexus 7 so that I can find 
> out the corresponding driver. I couldn't find the light sensor device 
> present on Nexus 7.
> 2. I tried to find equivalents of lsmod and modinfo so that I can know the 
> light sensor driver from the description. I figured out /sys/modules will 
> list all the modules. But couldn't find a way to get description of those 
> modules
> 3. I tried to grep through the linux kernel source code for "light sensor" 
> and did find many drivers. But coudn't find corresponding object files 
> being generated when the kernel is built.
>
> Can someone help me figureout the driver loaded for nexus 7 light sensor?
>

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to