mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
55716d2643
Based on 1 normalized pattern(s): this file is released under the gplv2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 68 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190531190114.292346262@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24 lines
512 B
C
24 lines
512 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* generic display timing functions
|
|
*
|
|
* Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix
|
|
*/
|
|
|
|
#include <linux/export.h>
|
|
#include <linux/slab.h>
|
|
#include <video/display_timing.h>
|
|
|
|
void display_timings_release(struct display_timings *disp)
|
|
{
|
|
if (disp->timings) {
|
|
unsigned int i;
|
|
|
|
for (i = 0; i < disp->num_timings; i++)
|
|
kfree(disp->timings[i]);
|
|
kfree(disp->timings);
|
|
}
|
|
kfree(disp);
|
|
}
|
|
EXPORT_SYMBOL_GPL(display_timings_release);
|