#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/fb.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/memblock.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_fdt.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/wait.h>
#include <video/of_display_timing.h>
#include "wm8505fb_regs.h"
#include "wmt_ge_rops.h"
#define DRIVER_NAME …
#define to_wm8505fb_info(__info) …
struct wm8505fb_info { … };
static int wm8505fb_init_hw(struct fb_info *info)
{ … }
static int wm8505fb_set_timing(struct fb_info *info)
{ … }
static int wm8505fb_set_par(struct fb_info *info)
{ … }
static ssize_t contrast_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t contrast_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(contrast);
static struct attribute *wm8505fb_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static inline u_int chan_to_field(u_int chan, struct fb_bitfield *bf)
{ … }
static int wm8505fb_setcolreg(unsigned regno, unsigned red, unsigned green,
unsigned blue, unsigned transp,
struct fb_info *info) { … }
static int wm8505fb_pan_display(struct fb_var_screeninfo *var,
struct fb_info *info)
{ … }
static int wm8505fb_blank(int blank, struct fb_info *info)
{ … }
static const struct fb_ops wm8505fb_ops = …;
static int wm8505fb_probe(struct platform_device *pdev)
{ … }
static void wm8505fb_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id wmt_dt_ids[] = …;
static struct platform_driver wm8505fb_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_DEVICE_TABLE(of, wmt_dt_ids);