xref: /linux/drivers/video/display_timing.c (revision bd628c1bed7902ec1f24ba0fe70758949146abbe)
1 /*
2  * generic display timing functions
3  *
4  * Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix
5  *
6  * This file is released under the GPLv2
7  */
8 
9 #include <linux/export.h>
10 #include <linux/slab.h>
11 #include <video/display_timing.h>
12 
13 void display_timings_release(struct display_timings *disp)
14 {
15 	if (disp->timings) {
16 		unsigned int i;
17 
18 		for (i = 0; i < disp->num_timings; i++)
19 			kfree(disp->timings[i]);
20 		kfree(disp->timings);
21 	}
22 	kfree(disp);
23 }
24 EXPORT_SYMBOL_GPL(display_timings_release);
25