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

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

Merge "ft5x06: Set input property bit to indicate a direct input device"

parents 25d359f4 5d244099
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -200,8 +200,9 @@ static int ft5x06_handle_touchdata(struct ft5x06_ts_data *data)
		pointid = (buf[FT_TOUCH_ID_POS + FT_TOUCH_STEP * i]) >> 4;
		if (pointid >= FT_MAX_ID)
			break;
		else

		event->touch_point++;

		event->x[i] =
		    (s16) (buf[FT_TOUCH_X_H_POS + FT_TOUCH_STEP * i] & 0x0F) <<
		    8 | (s16) buf[FT_TOUCH_X_L_POS + FT_TOUCH_STEP * i];
@@ -419,10 +420,8 @@ static int ft5x06_ts_probe(struct i2c_client *client,
	}

	data = kzalloc(sizeof(struct ft5x06_ts_data), GFP_KERNEL);
	if (!data) {
		dev_err(&client->dev, "Not enough memory\n");
	if (!data)
		return -ENOMEM;
	}

	input_dev = input_allocate_device();
	if (!input_dev) {
@@ -445,6 +444,7 @@ static int ft5x06_ts_probe(struct i2c_client *client,
	__set_bit(EV_KEY, input_dev->evbit);
	__set_bit(EV_ABS, input_dev->evbit);
	__set_bit(BTN_TOUCH, input_dev->keybit);
	__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);

	input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0,
			     pdata->x_max, 0, 0);
@@ -587,7 +587,7 @@ free_mem:
	return err;
}

static int __devexit ft5x06_ts_remove(struct i2c_client *client)
static int ft5x06_ts_remove(struct i2c_client *client)
{
	struct ft5x06_ts_data *data = i2c_get_clientdata(client);

+2 −2

File changed.

Contains only whitespace changes.