linux/drivers/video/backlight/pandora_bl.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Backlight driver for Pandora handheld.
 * Pandora uses TWL4030 PWM0 -> TPS61161 combo for control backlight.
 * Based on pwm_bl.c
 *
 * Copyright 2009,2012 Gražvydas Ignotas <[email protected]>
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/backlight.h>
#include <linux/mfd/twl.h>
#include <linux/err.h>

#define TWL_PWM0_ON
#define TWL_PWM0_OFF

#define TWL_INTBR_GPBR1
#define TWL_INTBR_PMBR1

#define TWL_PMBR1_PWM0_MUXMASK
#define TWL_PMBR1_PWM0
#define PWM0_CLK_ENABLE
#define PWM0_ENABLE

/* range accepted by hardware */
#define MIN_VALUE
#define MAX_VALUE
#define MAX_USER_VALUE

struct pandora_private {};

static int pandora_backlight_update_status(struct backlight_device *bl)
{}

static const struct backlight_ops pandora_backlight_ops =;

static int pandora_backlight_probe(struct platform_device *pdev)
{}

static struct platform_driver pandora_backlight_driver =;

module_platform_driver();

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