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:
Wang Jie 2021-11-16 11:29:09 +08:00 committed by Tao Huang
parent 2b5787ea0b
commit aec3ade8ca

View File

@ -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;