| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2013 Red Hat |
|---|
| 3 | 4 | * 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/>. |
|---|
| 16 | 5 | */ |
|---|
| 17 | 6 | |
|---|
| 18 | 7 | #ifndef __MDP4_KMS_H__ |
|---|
| .. | .. |
|---|
| 230 | 219 | static inline struct clk *mpd4_lvds_pll_init(struct drm_device *dev) |
|---|
| 231 | 220 | { |
|---|
| 232 | 221 | 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; |
|---|
| 246 | 222 | } |
|---|
| 247 | 223 | #endif |
|---|
| 248 | 224 | |
|---|