#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_graph.h>
#include <linux/regulator/consumer.h>
#include <video/mipi_display.h>
#include <drm/drm_mipi_dsi.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>
#include <drm/drm_probe_helper.h>
struct rm69380_panel { … };
static inline
struct rm69380_panel *to_rm69380_panel(struct drm_panel *panel)
{ … }
static void rm69380_reset(struct rm69380_panel *ctx)
{ … }
static int rm69380_on(struct rm69380_panel *ctx)
{ … }
static int rm69380_off(struct rm69380_panel *ctx)
{ … }
static int rm69380_prepare(struct drm_panel *panel)
{ … }
static int rm69380_unprepare(struct drm_panel *panel)
{ … }
static const struct drm_display_mode rm69380_mode = …;
static int rm69380_get_modes(struct drm_panel *panel,
struct drm_connector *connector)
{ … }
static const struct drm_panel_funcs rm69380_panel_funcs = …;
static int rm69380_bl_update_status(struct backlight_device *bl)
{ … }
static int rm69380_bl_get_brightness(struct backlight_device *bl)
{ … }
static const struct backlight_ops rm69380_bl_ops = …;
static struct backlight_device *
rm69380_create_backlight(struct mipi_dsi_device *dsi)
{ … }
static int rm69380_probe(struct mipi_dsi_device *dsi)
{ … }
static void rm69380_remove(struct mipi_dsi_device *dsi)
{ … }
static const struct of_device_id rm69380_of_match[] = …;
MODULE_DEVICE_TABLE(of, rm69380_of_match);
static struct mipi_dsi_driver rm69380_panel_driver = …;
module_mipi_dsi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;