/* Must be called from probe to finish initialization of the device. Contains the common initialization code for both devices that declare gpio pins and devices that do not. It is either called directly from probe or from request_firmware_wait callback.  */
static int goodix_configure_dev(struct goodix_ts_data *ts)
/* Must be called from probe to finish initialization of the device. Contains the common initialization code for both devices that declare gpio pins and devices that do not. It is either called directly from probe or from request_firmware_wait callback.  */
static int goodix_configure_dev(struct goodix_ts_data *ts)
{
	int error;
	ts->swapped_x_y = false;
	ts->inverted_x = false;
	ts->inverted_y = false;
	goodix_read_config(ts);
	error = goodix_request_input_dev(ts);
	if (error)
		return error;
	ts->irq_flags = goodix_irq_flags[ts->int_trigger_type] | IRQF_ONESHOT;
	error = goodix_request_irq(ts);
	if (error) {
		dev_err(&ts->client->dev, "request IRQ failed: %d\n", error);
		return error;
	}
	return 0;
}