From aec3ade8cada75c53e12205a86e172f15c38836a Mon Sep 17 00:00:00 2001 From: Wang Jie Date: Tue, 16 Nov 2021 11:29:09 +0800 Subject: [PATCH] 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 --- drivers/input/sensors/sensor-dev.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/input/sensors/sensor-dev.c b/drivers/input/sensors/sensor-dev.c index 5aeeba175edd..eb93e19157ea 100644 --- a/drivers/input/sensors/sensor-dev.c +++ b/drivers/input/sensors/sensor-dev.c @@ -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;