#include <linux/bits.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/gpio/consumer.h>
#include <linux/media-bus-format.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/spi/spi.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>
#define OTA5601A_CTL …
#define OTA5601A_CTL_OFF …
#define OTA5601A_CTL_ON …
struct ota5601a_panel_info { … };
struct ota5601a { … };
static inline struct ota5601a *to_ota5601a(struct drm_panel *panel)
{ … }
static const struct reg_sequence ota5601a_panel_regs[] = …;
static const struct regmap_config ota5601a_regmap_config = …;
static int ota5601a_prepare(struct drm_panel *drm_panel)
{ … }
static int ota5601a_unprepare(struct drm_panel *drm_panel)
{ … }
static int ota5601a_enable(struct drm_panel *drm_panel)
{ … }
static int ota5601a_disable(struct drm_panel *drm_panel)
{ … }
static int ota5601a_get_modes(struct drm_panel *drm_panel,
struct drm_connector *connector)
{ … }
static const struct drm_panel_funcs ota5601a_funcs = …;
static int ota5601a_probe(struct spi_device *spi)
{ … }
static void ota5601a_remove(struct spi_device *spi)
{ … }
static const struct drm_display_mode gpt3_display_modes[] = …;
static const struct ota5601a_panel_info gpt3_info = …;
static const struct spi_device_id gpt3_id[] = …;
MODULE_DEVICE_TABLE(spi, gpt3_id);
static const struct of_device_id ota5601a_of_match[] = …;
MODULE_DEVICE_TABLE(of, ota5601a_of_match);
static struct spi_driver ota5601a_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;