forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.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 __MDP4_KMS_H__
....@@ -230,19 +219,6 @@
230219 static inline struct clk *mpd4_lvds_pll_init(struct drm_device *dev)
231220 {
232221 return ERR_PTR(-ENODEV);
233
-}
234
-#endif
235
-
236
-#ifdef DOWNSTREAM_CONFIG_MSM_BUS_SCALING
237
-/* bus scaling data is associated with extra pointless platform devices,
238
- * "dtv", etc.. this is a bit of a hack, but we need a way for encoders
239
- * to find their pdata to make the bus-scaling stuff work.
240
- */
241
-static inline void *mdp4_find_pdata(const char *devname)
242
-{
243
- struct device *dev;
244
- dev = bus_find_device_by_name(&platform_bus_type, NULL, devname);
245
- return dev ? dev->platform_data : NULL;
246222 }
247223 #endif
248224