xref: /kernel/linux/linux-5.10/drivers/video/display_timing.c (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/video/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * generic display timing functions
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <linux/export.h>
98c2ecf20Sopenharmony_ci#include <linux/slab.h>
108c2ecf20Sopenharmony_ci#include <video/display_timing.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_civoid display_timings_release(struct display_timings *disp)
138c2ecf20Sopenharmony_ci{
148c2ecf20Sopenharmony_ci	if (disp->timings) {
158c2ecf20Sopenharmony_ci		unsigned int i;
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci		for (i = 0; i < disp->num_timings; i++)
188c2ecf20Sopenharmony_ci			kfree(disp->timings[i]);
198c2ecf20Sopenharmony_ci		kfree(disp->timings);
208c2ecf20Sopenharmony_ci	}
218c2ecf20Sopenharmony_ci	kfree(disp);
228c2ecf20Sopenharmony_ci}
238c2ecf20Sopenharmony_ciEXPORT_SYMBOL_GPL(display_timings_release);
24

Indexes created Thu Nov 07 10:32:03 CST 2024