forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 223293205a7265c8b02882461ba8996650048ade
kernel/drivers/gpu/drm/msm/hdmi/hdmi.h
....@@ -1,18 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2013 Red Hat
34 * Author: Rob Clark <robdclark@gmail.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU General Public License version 2 as published by
7
- * the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
- * more details.
13
- *
14
- * You should have received a copy of the GNU General Public License along with
15
- * this program. If not, see <http://www.gnu.org/licenses/>.
165 */
176
187 #ifndef __HDMI_CONNECTOR_H__
....@@ -22,7 +11,10 @@
2211 #include <linux/clk.h>
2312 #include <linux/platform_device.h>
2413 #include <linux/regulator/consumer.h>
14
+#include <linux/gpio/consumer.h>
2515 #include <linux/hdmi.h>
16
+
17
+#include <drm/drm_bridge.h>
2618
2719 #include "msm_drv.h"
2820 #include "hdmi.xml.h"
....@@ -33,10 +25,9 @@
3325 struct hdmi_platform_config;
3426
3527 struct hdmi_gpio_data {
36
- int num;
28
+ struct gpio_desc *gpiod;
3729 bool output;
3830 int value;
39
- const char *label;
4031 };
4132
4233 struct hdmi_audio {