#include <linux/module.h>
#include <drm/drm_crtc_helper.h>
#include "ch7006_priv.h"
static void ch7006_encoder_set_config(struct drm_encoder *encoder,
void *params)
{ … }
static void ch7006_encoder_destroy(struct drm_encoder *encoder)
{ … }
static void ch7006_encoder_dpms(struct drm_encoder *encoder, int mode)
{ … }
static void ch7006_encoder_save(struct drm_encoder *encoder)
{ … }
static void ch7006_encoder_restore(struct drm_encoder *encoder)
{ … }
static bool ch7006_encoder_mode_fixup(struct drm_encoder *encoder,
const struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{ … }
static int ch7006_encoder_mode_valid(struct drm_encoder *encoder,
struct drm_display_mode *mode)
{ … }
static void ch7006_encoder_mode_set(struct drm_encoder *encoder,
struct drm_display_mode *drm_mode,
struct drm_display_mode *adjusted_mode)
{ … }
static enum drm_connector_status ch7006_encoder_detect(struct drm_encoder *encoder,
struct drm_connector *connector)
{ … }
static int ch7006_encoder_get_modes(struct drm_encoder *encoder,
struct drm_connector *connector)
{ … }
static int ch7006_encoder_create_resources(struct drm_encoder *encoder,
struct drm_connector *connector)
{ … }
static int ch7006_encoder_set_property(struct drm_encoder *encoder,
struct drm_connector *connector,
struct drm_property *property,
uint64_t val)
{ … }
static const struct drm_encoder_slave_funcs ch7006_encoder_funcs = …;
static int ch7006_probe(struct i2c_client *client)
{ … }
static void ch7006_remove(struct i2c_client *client)
{ … }
static int ch7006_resume(struct device *dev)
{ … }
static int ch7006_encoder_init(struct i2c_client *client,
struct drm_device *dev,
struct drm_encoder_slave *encoder)
{ … }
static const struct i2c_device_id ch7006_ids[] = …;
MODULE_DEVICE_TABLE(i2c, ch7006_ids);
static const struct dev_pm_ops ch7006_pm_ops = …;
static struct drm_i2c_encoder_driver ch7006_driver = …;
static int __init ch7006_init(void)
{ … }
static void __exit ch7006_exit(void)
{ … }
int ch7006_debug;
module_param_named(debug, ch7006_debug, int, 0600);
MODULE_PARM_DESC(…) …;
char *ch7006_tv_norm;
module_param_named(tv_norm, ch7006_tv_norm, charp, 0600);
MODULE_PARM_DESC(…) …;
int ch7006_scale = …;
module_param_named(scale, ch7006_scale, int, 0600);
MODULE_PARM_DESC(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
module_init(…) …;
module_exit(ch7006_exit);