]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - drivers/gpu/drm/msm/msm_connector.c
Merge branch 'drm-next' of git://people.freedesktop.org/~robclark/linux into drm...
[karo-tx-linux.git] / drivers / gpu / drm / msm / msm_connector.c
1 /*
2  * Copyright (C) 2013 Red Hat
3  * 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  */
17
18 #include "msm_drv.h"
19 #include "msm_connector.h"
20
21 void msm_connector_init(struct msm_connector *connector,
22                 const struct msm_connector_funcs *funcs,
23                 struct drm_encoder *encoder)
24 {
25         connector->funcs = funcs;
26         connector->encoder = encoder;
27 }
28
29 struct drm_encoder *msm_connector_attached_encoder(
30                 struct drm_connector *connector)
31 {
32         struct msm_connector *msm_connector = to_msm_connector(connector);
33         return msm_connector->encoder;
34 }