Removed compass offset hack ready to pull in Rajko's fix.

This commit is contained in:
Jon Benson 2010-09-30 11:17:07 +10:00
parent 0321ede21f
commit cc563b3203

View File

@ -260,18 +260,6 @@ static void AKECS_Report_Value(short *rbuf)
rbuf[6], rbuf[7], rbuf[8]);
#endif
/* Offset compass hack taken from michyprimas kernel */
short valueint = rbuf[0];
if ((valueint + 85) < 360)
{
rbuf[0] = valueint + 85;
}
else
{
short diff = 359 - valueint;
rbuf[0] = 85 - diff;
}
/* Report magnetic sensor information */
if (atomic_read(&m_flag)) {
input_report_abs(data->input_dev, ABS_RX, rbuf[0]);