#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/module.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>
#define MCS_LEVEL2_KEY …
#define MCS_MTP_KEY …
#define MCS_MTP_SET3 …
#define MAX_BRIGHTNESS …
#define DEFAULT_BRIGHTNESS …
#define NUM_GAMMA_STEPS …
#define GAMMA_CMD_CNT …
#define FIRST_COLUMN …
struct s6e63j0x03 { … };
static const struct drm_display_mode default_mode = …;
static const unsigned char gamma_tbl[NUM_GAMMA_STEPS][GAMMA_CMD_CNT] = …;
static inline struct s6e63j0x03 *panel_to_s6e63j0x03(struct drm_panel *panel)
{ … }
static inline ssize_t s6e63j0x03_dcs_write_seq(struct s6e63j0x03 *ctx,
const void *seq, size_t len)
{ … }
#define s6e63j0x03_dcs_write_seq_static(ctx, seq...) …
static inline int s6e63j0x03_enable_lv2_command(struct s6e63j0x03 *ctx)
{ … }
static inline int s6e63j0x03_apply_mtp_key(struct s6e63j0x03 *ctx, bool on)
{ … }
static int s6e63j0x03_power_on(struct s6e63j0x03 *ctx)
{ … }
static int s6e63j0x03_power_off(struct s6e63j0x03 *ctx)
{ … }
static unsigned int s6e63j0x03_get_brightness_index(unsigned int brightness)
{ … }
static int s6e63j0x03_update_gamma(struct s6e63j0x03 *ctx,
unsigned int brightness)
{ … }
static int s6e63j0x03_set_brightness(struct backlight_device *bl_dev)
{ … }
static const struct backlight_ops s6e63j0x03_bl_ops = …;
static int s6e63j0x03_disable(struct drm_panel *panel)
{ … }
static int s6e63j0x03_unprepare(struct drm_panel *panel)
{ … }
static int s6e63j0x03_panel_init(struct s6e63j0x03 *ctx)
{ … }
static int s6e63j0x03_prepare(struct drm_panel *panel)
{ … }
static int s6e63j0x03_enable(struct drm_panel *panel)
{ … }
static int s6e63j0x03_get_modes(struct drm_panel *panel,
struct drm_connector *connector)
{ … }
static const struct drm_panel_funcs s6e63j0x03_funcs = …;
static int s6e63j0x03_probe(struct mipi_dsi_device *dsi)
{ … }
static void s6e63j0x03_remove(struct mipi_dsi_device *dsi)
{ … }
static const struct of_device_id s6e63j0x03_of_match[] = …;
MODULE_DEVICE_TABLE(of, s6e63j0x03_of_match);
static struct mipi_dsi_driver s6e63j0x03_driver = …;
module_mipi_dsi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;