This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Daylight sensor driver

My company is developing a custom Integra/DaVinci-based board with Avago APDS-9301 daylight sensor driver, which is connected via I2C. We are using the official Android port for DaVinci.

I have Avago's Linux driver (one .c file with driver code) and also a libsensors folder with two files (LightSensor.cpp and LightSensor.h) which are, I presume, the interface to Android. I searched the source tree for another similar sensor in order to see how it's used by kernel, but it seems that this port completely lacks drivers for similar sensor devices.

Where should I place those files and which Makefiles and config files should I edit in order to get the driver working in Linux and to get Android recognize board's sensor capabilities? I believe the driver should run as a loadable module and initialized with insmod.

Some guidelines would be very helpful, thanks!