cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

display_timing.c (512B)


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