mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
input: sensor: add new layout 9
In order to adapt to the mpu6500 in the rk3588 evb3 board, a new layout was added. Change-Id: I9283e05e7b8b3ec04ee887e36898c4c49e4efa51 Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
This commit is contained in:
parent
2b5787ea0b
commit
aec3ade8ca
|
|
@ -1739,6 +1739,20 @@ static int sensor_probe(struct i2c_client *client, const struct i2c_device_id *d
|
|||
pdata->orientation[8] = -1;
|
||||
break;
|
||||
|
||||
case 9:
|
||||
pdata->orientation[0] = -1;
|
||||
pdata->orientation[1] = 0;
|
||||
pdata->orientation[2] = 0;
|
||||
|
||||
pdata->orientation[3] = 0;
|
||||
pdata->orientation[4] = -1;
|
||||
pdata->orientation[5] = 0;
|
||||
|
||||
pdata->orientation[6] = 0;
|
||||
pdata->orientation[7] = 0;
|
||||
pdata->orientation[8] = -1;
|
||||
break;
|
||||
|
||||
default:
|
||||
pdata->orientation[0] = 1;
|
||||
pdata->orientation[1] = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user