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

Commit 262fc5dc authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: touchscreen: synaptics_tcm: extended format report"

parents 15311884 e551a794
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -188,6 +188,9 @@ static int parse_dt(struct device *dev, struct syna_tcm_board_data *bdata)
		bdata->ubl_i2c_addr = 0;
	}

	bdata->extend_report = of_property_read_bool(np,
			"synaptics,extend_report");

	return 0;
}
#endif
+3 −3
Original line number Diff line number Diff line
@@ -846,10 +846,10 @@ static int touch_set_report_config(void)
	unsigned int length;
	struct syna_tcm_app_info *app_info;
	struct syna_tcm_hcd *tcm_hcd = touch_hcd->tcm_hcd;
	const struct syna_tcm_board_data *bdata = tcm_hcd->hw_if->bdata;

#ifdef USE_DEFAULT_TOUCH_REPORT_CONFIG
	if (!bdata->extend_report)
		return 0;
#endif

	app_info = &tcm_hcd->app_info;
	length = le2_to_uint(app_info->max_touch_report_config_size);
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ struct syna_tcm_board_data {
	unsigned long irq_flags;
	const char *pwr_reg_name;
	const char *bus_reg_name;
	bool extend_report;
};

#endif