blob: 5e1822cef571f98a536c177c9d92ad6eb9252390 [file] [log] [blame]
Kyle Swenson8d8f6542021-03-15 11:02:55 -06001/*
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
13void 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}
24EXPORT_SYMBOL_GPL(display_timings_release);