linux/drivers/video/backlight/rt4831-backlight.c

// SPDX-License-Identifier: GPL-2.0-only

#include <dt-bindings/leds/rt4831-backlight.h>
#include <linux/backlight.h>
#include <linux/bitops.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>

#define RT4831_REG_BLCFG
#define RT4831_REG_BLDIML
#define RT4831_REG_ENABLE
#define RT4831_REG_BLOPT2

#define RT4831_BLMAX_BRIGHTNESS

#define RT4831_BLOVP_MASK
#define RT4831_BLOVP_SHIFT
#define RT4831_BLPWMEN_MASK
#define RT4831_BLEN_MASK
#define RT4831_BLCH_MASK
#define RT4831_BLDIML_MASK
#define RT4831_BLDIMH_MASK
#define RT4831_BLDIMH_SHIFT
#define RT4831_BLOCP_MASK

#define RT4831_BLOCP_MINUA
#define RT4831_BLOCP_MAXUA
#define RT4831_BLOCP_STEPUA

struct rt4831_priv {};

static int rt4831_bl_update_status(struct backlight_device *bl_dev)
{}

static int rt4831_bl_get_brightness(struct backlight_device *bl_dev)
{}

static const struct backlight_ops rt4831_bl_ops =;

static int rt4831_parse_backlight_properties(struct rt4831_priv *priv,
					     struct backlight_properties *bl_props)
{}

static int rt4831_bl_probe(struct platform_device *pdev)
{}

static void rt4831_bl_remove(struct platform_device *pdev)
{}

static const struct of_device_id __maybe_unused rt4831_bl_of_match[] =;
MODULE_DEVICE_TABLE(of, rt4831_bl_of_match);

static struct platform_driver rt4831_bl_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();