#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/regulator/consumer.h>
#include <linux/spi/spi.h>
#include <video/mipi_display.h>
#include <video/of_videomode.h>
#include <video/videomode.h>
#include <drm/drm_device.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>
struct lg4573 { … };
static inline struct lg4573 *panel_to_lg4573(struct drm_panel *panel)
{ … }
static int lg4573_spi_write_u16(struct lg4573 *ctx, u16 data)
{ … }
static int lg4573_spi_write_u16_array(struct lg4573 *ctx, const u16 *buffer,
unsigned int count)
{ … }
static int lg4573_spi_write_dcs(struct lg4573 *ctx, u8 dcs)
{ … }
static int lg4573_display_on(struct lg4573 *ctx)
{ … }
static int lg4573_display_off(struct lg4573 *ctx)
{ … }
static int lg4573_display_mode_settings(struct lg4573 *ctx)
{ … }
static int lg4573_power_settings(struct lg4573 *ctx)
{ … }
static int lg4573_gamma_settings(struct lg4573 *ctx)
{ … }
static int lg4573_init(struct lg4573 *ctx)
{ … }
static int lg4573_power_on(struct lg4573 *ctx)
{ … }
static int lg4573_disable(struct drm_panel *panel)
{ … }
static int lg4573_enable(struct drm_panel *panel)
{ … }
static const struct drm_display_mode default_mode = …;
static int lg4573_get_modes(struct drm_panel *panel,
struct drm_connector *connector)
{ … }
static const struct drm_panel_funcs lg4573_drm_funcs = …;
static int lg4573_probe(struct spi_device *spi)
{ … }
static void lg4573_remove(struct spi_device *spi)
{ … }
static const struct of_device_id lg4573_of_match[] = …;
MODULE_DEVICE_TABLE(of, lg4573_of_match);
static struct spi_driver lg4573_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;