#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 <drm/drm_mipi_dsi.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>
struct truly_nt35521 { … };
#define NT35521_DCS_SWITCH_PAGE …
#define nt35521_switch_page(dsi_ctx, page) …
static inline
struct truly_nt35521 *to_truly_nt35521(struct drm_panel *panel)
{ … }
static void truly_nt35521_reset(struct truly_nt35521 *ctx)
{ … }
static int truly_nt35521_on(struct truly_nt35521 *ctx)
{ … }
static int truly_nt35521_off(struct truly_nt35521 *ctx)
{ … }
static int truly_nt35521_prepare(struct drm_panel *panel)
{ … }
static int truly_nt35521_unprepare(struct drm_panel *panel)
{ … }
static int truly_nt35521_enable(struct drm_panel *panel)
{ … }
static int truly_nt35521_disable(struct drm_panel *panel)
{ … }
static const struct drm_display_mode truly_nt35521_mode = …;
static int truly_nt35521_get_modes(struct drm_panel *panel,
struct drm_connector *connector)
{ … }
static const struct drm_panel_funcs truly_nt35521_panel_funcs = …;
static int truly_nt35521_bl_update_status(struct backlight_device *bl)
{ … }
static int truly_nt35521_bl_get_brightness(struct backlight_device *bl)
{ … }
static const struct backlight_ops truly_nt35521_bl_ops = …;
static struct backlight_device *
truly_nt35521_create_backlight(struct mipi_dsi_device *dsi)
{ … }
static int truly_nt35521_probe(struct mipi_dsi_device *dsi)
{ … }
static void truly_nt35521_remove(struct mipi_dsi_device *dsi)
{ … }
static const struct of_device_id truly_nt35521_of_match[] = …;
MODULE_DEVICE_TABLE(of, truly_nt35521_of_match);
static struct mipi_dsi_driver truly_nt35521_driver = …;
module_mipi_dsi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;