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

Commit 3801a7fd authored by Dave Airlie's avatar Dave Airlie Committed by Daniel Vetter
Browse files

drm/i915/tv: fix open-coded ARRAY_SIZE.

parent 31b14c9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -811,7 +811,7 @@ intel_tv_mode_lookup(const char *tv_format)
{
	int i;

	for (i = 0; i < sizeof(tv_modes) / sizeof(tv_modes[0]); i++) {
	for (i = 0; i < ARRAY_SIZE(tv_modes); i++) {
		const struct tv_mode *tv_mode = &tv_modes[i];

		if (!strcmp(tv_format, tv_mode->name))