mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
parent
683b72fd0d
commit
89d95b673f
|
|
@ -345,15 +345,9 @@ static void mma8452_report_value(struct i2c_client *client, struct mma8452_axis
|
|||
//struct mma8452_axis *axis = (struct mma8452_axis *)rbuf;
|
||||
|
||||
/* Report acceleration sensor information */
|
||||
#ifdef CONFIG_MACH_RK29_K97
|
||||
input_report_abs(mma8452->input_dev, ABS_X, axis->y);
|
||||
input_report_abs(mma8452->input_dev, ABS_Y, axis->x);
|
||||
input_report_abs(mma8452->input_dev, ABS_Z, -axis->z);
|
||||
#else
|
||||
input_report_abs(mma8452->input_dev, ABS_X, axis->x);
|
||||
input_report_abs(mma8452->input_dev, ABS_Y, axis->y);
|
||||
input_report_abs(mma8452->input_dev, ABS_Z, axis->z);
|
||||
#endif
|
||||
input_sync(mma8452->input_dev);
|
||||
mmaprintkd("Gsensor x==%d y==%d z==%d\n",axis->x,axis->y,axis->z);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user