Linux 4.1.16
[linux/fpc-iii.git] / drivers / video / display_timing.c
blob5e1822cef571f98a536c177c9d92ad6eb9252390
1 /*
2 * generic display timing functions
4 * Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix
6 * This file is released under the GPLv2
7 */
9 #include <linux/export.h>
10 #include <linux/slab.h>
11 #include <video/display_timing.h>
13 void display_timings_release(struct display_timings *disp)
15 if (disp->timings) {
16 unsigned int i;
18 for (i = 0; i < disp->num_timings; i++)
19 kfree(disp->timings[i]);
20 kfree(disp->timings);
22 kfree(disp);
24 EXPORT_SYMBOL_GPL(display_timings_release);