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

Commit aefd4a5a authored by Gianluca Gennari's avatar Gianluca Gennari Committed by Mauro Carvalho Chehab
Browse files

[media] adv7511: fix compilation with GCC < 4.4.6

parent 9b51f175
Loading
Loading
Loading
Loading
+7 −9
Original line number Original line Diff line number Diff line
@@ -119,16 +119,14 @@ static int adv7511_s_clock_freq(struct v4l2_subdev *sd, u32 freq);


static const struct v4l2_dv_timings_cap adv7511_timings_cap = {
static const struct v4l2_dv_timings_cap adv7511_timings_cap = {
	.type = V4L2_DV_BT_656_1120,
	.type = V4L2_DV_BT_656_1120,
	.bt = {
	/* keep this initialization for compatibility with GCC < 4.4.6 */
		.max_width = ADV7511_MAX_WIDTH,
	.reserved = { 0 },
		.max_height = ADV7511_MAX_HEIGHT,
	V4L2_INIT_BT_TIMINGS(0, ADV7511_MAX_WIDTH, 0, ADV7511_MAX_HEIGHT,
		.min_pixelclock = ADV7511_MIN_PIXELCLOCK,
		ADV7511_MIN_PIXELCLOCK, ADV7511_MAX_PIXELCLOCK,
		.max_pixelclock = ADV7511_MAX_PIXELCLOCK,
		V4L2_DV_BT_STD_CEA861 | V4L2_DV_BT_STD_DMT |
		.standards = V4L2_DV_BT_STD_CEA861 | V4L2_DV_BT_STD_DMT |
			V4L2_DV_BT_STD_GTF | V4L2_DV_BT_STD_CVT,
			V4L2_DV_BT_STD_GTF | V4L2_DV_BT_STD_CVT,
		.capabilities = V4L2_DV_BT_CAP_PROGRESSIVE |
		V4L2_DV_BT_CAP_PROGRESSIVE | V4L2_DV_BT_CAP_REDUCED_BLANKING |
			V4L2_DV_BT_CAP_REDUCED_BLANKING | V4L2_DV_BT_CAP_CUSTOM,
			V4L2_DV_BT_CAP_CUSTOM)
	},
};
};


static inline struct adv7511_state *get_adv7511_state(struct v4l2_subdev *sd)
static inline struct adv7511_state *get_adv7511_state(struct v4l2_subdev *sd)