Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1c45d35 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: sensors: fix accelerometer output data rate issue"

parents 47c62864 12a15ada
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -394,9 +394,14 @@ static int mma8x5x_delay2odr(u32 delay_ms)

static int mma8x5x_device_set_odr(struct i2c_client *client, u32 delay_ms)
{
	struct mma8x5x_data *pdata = i2c_get_clientdata(client);
	int result;
	u8 val;

	/* set ODR is only required for interrupt mode */
	if (!pdata->use_int)
		return 0;

	result = mma8x5x_delay2odr(delay_ms);
	if (result < 0)
		goto out;