summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/msm_connector.c
blob: aeea8879e36f09ac0d18d4a75e2c5122ae7bae87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (C) 2013 Red Hat
 * Author: Rob Clark <robdclark@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "msm_drv.h"
#include "msm_connector.h"

void msm_connector_init(struct msm_connector *connector,
		const struct msm_connector_funcs *funcs,
		struct drm_encoder *encoder)
{
	connector->funcs = funcs;
	connector->encoder = encoder;
}

struct drm_encoder *msm_connector_attached_encoder(
		struct drm_connector *connector)
{
	struct msm_connector *msm_connector = to_msm_connector(connector);
	return msm_connector->encoder;
}