#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regulator/consumer.h>
#include <video/mipi_display.h>
#include <drm/drm_crtc.h>
#include <drm/drm_device.h>
#include <drm/drm_mipi_dsi.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>
struct kingdisplay_panel { … };
struct kingdisplay_panel_cmd { … };
static const struct kingdisplay_panel_cmd init_code[] = …;
static inline
struct kingdisplay_panel *to_kingdisplay_panel(struct drm_panel *panel)
{ … }
static int kingdisplay_panel_disable(struct drm_panel *panel)
{ … }
static int kingdisplay_panel_unprepare(struct drm_panel *panel)
{ … }
static int kingdisplay_panel_prepare(struct drm_panel *panel)
{ … }
static const struct drm_display_mode default_mode = …;
static int kingdisplay_panel_get_modes(struct drm_panel *panel,
struct drm_connector *connector)
{ … }
static const struct drm_panel_funcs kingdisplay_panel_funcs = …;
static const struct of_device_id kingdisplay_of_match[] = …;
MODULE_DEVICE_TABLE(of, kingdisplay_of_match);
static int kingdisplay_panel_add(struct kingdisplay_panel *kingdisplay)
{ … }
static void kingdisplay_panel_del(struct kingdisplay_panel *kingdisplay)
{ … }
static int kingdisplay_panel_probe(struct mipi_dsi_device *dsi)
{ … }
static void kingdisplay_panel_remove(struct mipi_dsi_device *dsi)
{ … }
static struct mipi_dsi_driver kingdisplay_panel_driver = …;
module_mipi_dsi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;