Dianne,
In addition, what is your opinion on including the compass algorithm
in the sensors_trout.c in the case of the magnetometer and
accelerometer having separate drivers? This way when orientation is
requested it would poll each driver and derive the value. In the HTC
driver (akm8976) they were both in the same part and subsequently the
same driver. The other way to do this would be to have a third dummy
driver but then it would need to interact with the other two drivers
to poll data and adds unnecessary complexity to the drivers.
Thanks,
Ken