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

Commit 8e4e3631 authored by Martin Bugge's avatar Martin Bugge Committed by Mauro Carvalho Chehab
Browse files

[media] adv7842: set default input in platform-data

parent 3c4da74f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2804,7 +2804,7 @@ static int adv7842_probe(struct i2c_client *client,
	state->connector_hdmi = pdata->connector_hdmi;
	state->connector_hdmi = pdata->connector_hdmi;
	state->mode = pdata->mode;
	state->mode = pdata->mode;


	state->hdmi_port_a = true;
	state->hdmi_port_a = pdata->input == ADV7842_SELECT_HDMI_PORT_A;


	/* i2c access to adv7842? */
	/* i2c access to adv7842? */
	rev = adv_smbus_read_byte_data_check(client, 0xea, false) << 8 |
	rev = adv_smbus_read_byte_data_check(client, 0xea, false) << 8 |
+3 −0
Original line number Original line Diff line number Diff line
@@ -160,6 +160,9 @@ struct adv7842_platform_data {
	/* Default mode */
	/* Default mode */
	enum adv7842_mode mode;
	enum adv7842_mode mode;


	/* Default input */
	unsigned input;

	/* Video standard */
	/* Video standard */
	enum adv7842_vid_std_select vid_std_select;
	enum adv7842_vid_std_select vid_std_select;