.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2017 Samsung Electronics Co., Ltd. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify it |
---|
5 | | - * under the terms of the GNU General Public License as published by the |
---|
6 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
7 | | - * option) any later version. |
---|
8 | 4 | */ |
---|
9 | 5 | |
---|
10 | 6 | #ifndef _EXYNOS_DRM_IPP_H_ |
---|
11 | 7 | #define _EXYNOS_DRM_IPP_H_ |
---|
12 | | - |
---|
13 | | -#include <drm/drmP.h> |
---|
14 | 8 | |
---|
15 | 9 | struct exynos_drm_ipp; |
---|
16 | 10 | struct exynos_drm_ipp_task; |
---|
.. | .. |
---|
54 | 48 | * struct exynos_drm_ipp - central picture processor module structure |
---|
55 | 49 | */ |
---|
56 | 50 | struct exynos_drm_ipp { |
---|
57 | | - struct drm_device *dev; |
---|
| 51 | + struct drm_device *drm_dev; |
---|
| 52 | + struct device *dev; |
---|
58 | 53 | struct list_head head; |
---|
59 | 54 | unsigned int id; |
---|
60 | 55 | |
---|
.. | .. |
---|
85 | 80 | * has to be performed by the picture processor hardware module |
---|
86 | 81 | */ |
---|
87 | 82 | struct exynos_drm_ipp_task { |
---|
88 | | - struct drm_device *dev; |
---|
| 83 | + struct device *dev; |
---|
89 | 84 | struct exynos_drm_ipp *ipp; |
---|
90 | 85 | struct list_head head; |
---|
91 | 86 | |
---|
.. | .. |
---|
129 | 124 | #define IPP_SCALE_LIMIT(val...) \ |
---|
130 | 125 | .type = (DRM_EXYNOS_IPP_LIMIT_TYPE_SCALE), val |
---|
131 | 126 | |
---|
132 | | -int exynos_drm_ipp_register(struct drm_device *dev, struct exynos_drm_ipp *ipp, |
---|
| 127 | +int exynos_drm_ipp_register(struct device *dev, struct exynos_drm_ipp *ipp, |
---|
133 | 128 | const struct exynos_drm_ipp_funcs *funcs, unsigned int caps, |
---|
134 | 129 | const struct exynos_drm_ipp_formats *formats, |
---|
135 | 130 | unsigned int num_formats, const char *name); |
---|
136 | | -void exynos_drm_ipp_unregister(struct drm_device *dev, |
---|
| 131 | +void exynos_drm_ipp_unregister(struct device *dev, |
---|
137 | 132 | struct exynos_drm_ipp *ipp); |
---|
138 | 133 | |
---|
139 | 134 | void exynos_drm_ipp_task_done(struct exynos_drm_ipp_task *task, int ret); |
---|