Hi all,
I have a generic question about using the TMP105 driver.
Currently I use the driver lm75.c, located in drivers/hwmon, to get the board temperature. Like the name of the directory suggests this one is used for hardware monitoring. The device is registered using thermal_sensor_dev_register. The function lm75_get_temp is periodically called from thermal framework (I assume this).
The Android sources of the blaze board use the BMP085 for getting the temperature, implemented as input device. This kind of devices uses other register functions and report functions as hwmon-devices.
What is the right way to implement the driver for using it with Android?
1. Using the thermal interface OR the input interface.
2. Using the thermal interface AND the input interface.
3. Using only the thermal interface
4. Using only the input interface
If I need to adapt the input interface for lm75.c where is the best place for doing this?
- copy the sources of lm75.c from driver/hwmon to driver/misc/input and modify it to act as a input device
- make the modification/ add on in /driver/hwmon?
I saw that some devices are double in the Linux source tree. For instance the driver for BH1780 is located in driver/misc and driver/input/misc. But I think this is not the best way.
Many thanks in advance,
Roman