2 * Copyright (C) 2016 Noralf Trønnes
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
10 #ifndef __LINUX_TINYDRM_H
11 #define __LINUX_TINYDRM_H
13 #include <drm/drm_simple_kms_helper.h>
18 * struct tinydrm_device - tinydrm device
20 struct tinydrm_device {
24 struct drm_device *drm;
27 * @pipe: Display pipe structure
29 struct drm_simple_display_pipe pipe;
32 static inline struct tinydrm_device *
33 pipe_to_tinydrm(struct drm_simple_display_pipe *pipe)
35 return container_of(pipe, struct tinydrm_device, pipe);
38 int devm_tinydrm_init(struct device *parent, struct tinydrm_device *tdev,
39 struct drm_driver *driver);
40 int devm_tinydrm_register(struct tinydrm_device *tdev);
42 #endif /* __LINUX_TINYDRM_H */