linux/drivers/leds/leds-max77650.c

// SPDX-License-Identifier: GPL-2.0
//
// Copyright (C) 2018 BayLibre SAS
// Author: Bartosz Golaszewski <[email protected]>
//
// LED driver for MAXIM 77650/77651 charger/power-supply.

#include <linux/i2c.h>
#include <linux/leds.h>
#include <linux/mfd/max77650.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

#define MAX77650_LED_NUM_LEDS

#define MAX77650_LED_A_BASE
#define MAX77650_LED_B_BASE

#define MAX77650_LED_BR_MASK
#define MAX77650_LED_EN_MASK

#define MAX77650_LED_MAX_BRIGHTNESS

/* Enable EN_LED_MSTR. */
#define MAX77650_LED_TOP_DEFAULT

#define MAX77650_LED_ENABLE
#define MAX77650_LED_DISABLE

#define MAX77650_LED_A_DEFAULT
/* 100% on duty */
#define MAX77650_LED_B_DEFAULT

struct max77650_led {};

static struct max77650_led *max77650_to_led(struct led_classdev *cdev)
{}

static int max77650_led_brightness_set(struct led_classdev *cdev,
				       enum led_brightness brightness)
{}

static int max77650_led_probe(struct platform_device *pdev)
{}

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

static struct platform_driver max77650_led_driver =;
module_platform_driver();

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