summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/udl/udl_connector.h
blob: 74ad68fd3cc9f35d1430fed0dd5b2f00b03f1295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __UDL_CONNECTOR_H__
#define __UDL_CONNECTOR_H__

#include <linux/container_of.h>

#include <drm/drm_connector.h>

struct edid;

struct udl_connector {
	struct drm_connector connector;
	/* last udl_detect edid */
	struct edid *edid;
};

static inline struct udl_connector *to_udl_connector(struct drm_connector *connector)
{
	return container_of(connector, struct udl_connector, connector);
}

#endif //__UDL_CONNECTOR_H__