hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h
....@@ -1,13 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
2
- *
3
- * This program is free software; you can redistribute it and/or modify
4
- * it under the terms of the GNU General Public License version 2 and
5
- * only version 2 as published by the Free Software Foundation.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
113 */
124
135 #ifndef _DPU_FORMATS_H
....@@ -39,20 +31,6 @@
3931 struct msm_kms *kms,
4032 const uint32_t format,
4133 const uint64_t modifiers);
42
-
43
-/**
44
- * dpu_populate_formats - populate the given array with fourcc codes supported
45
- * @format_list: pointer to list of possible formats
46
- * @pixel_formats: array to populate with fourcc codes
47
- * @pixel_modifiers: array to populate with drm modifiers, can be NULL
48
- * @pixel_formats_max: length of pixel formats array
49
- * Return: number of elements populated
50
- */
51
-uint32_t dpu_populate_formats(
52
- const struct dpu_format_extended *format_list,
53
- uint32_t *pixel_formats,
54
- uint64_t *pixel_modifiers,
55
- uint32_t pixel_formats_max);
5634
5735 /**
5836 * dpu_format_check_modified_format - validate format and buffers for