#include <linux/backlight.h>
#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_mipi_dsi.h>
#include <drm/drm_panel.h>
#include <drm/drm_probe_helper.h>
#include <drm/display/drm_dsc.h>
#include <drm/display/drm_dsc_helper.h>
#define NUM_SUPPLIES …
struct sw43408_panel { … };
static inline struct sw43408_panel *to_panel_info(struct drm_panel *panel)
{ … }
static int sw43408_unprepare(struct drm_panel *panel)
{ … }
static int sw43408_program(struct drm_panel *panel)
{ … }
static int sw43408_prepare(struct drm_panel *panel)
{ … }
static const struct drm_display_mode sw43408_mode = …;
static int sw43408_get_modes(struct drm_panel *panel,
struct drm_connector *connector)
{ … }
static int sw43408_backlight_update_status(struct backlight_device *bl)
{ … }
static const struct backlight_ops sw43408_backlight_ops = …;
static int sw43408_backlight_init(struct sw43408_panel *ctx)
{ … }
static const struct drm_panel_funcs sw43408_funcs = …;
static const struct of_device_id sw43408_of_match[] = …;
MODULE_DEVICE_TABLE(of, sw43408_of_match);
static int sw43408_add(struct sw43408_panel *ctx)
{ … }
static int sw43408_probe(struct mipi_dsi_device *dsi)
{ … }
static void sw43408_remove(struct mipi_dsi_device *dsi)
{ … }
static struct mipi_dsi_driver sw43408_driver = …;
module_mipi_dsi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;