linux/drivers/power/supply/power_supply_leds.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  LEDs triggers for power supply class
 *
 *  Copyright © 2007  Anton Vorontsov <[email protected]>
 *  Copyright © 2004  Szabolcs Gyurko
 *  Copyright © 2003  Ian Molton <[email protected]>
 *
 *  Modified: 2004, Oct     Szabolcs Gyurko
 */

#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/leds.h>

#include "power_supply.h"

/* Battery specific LEDs triggers. */

struct power_supply_led_trigger {};

#define trigger_to_psy_trigger(trigger)

static int power_supply_led_trigger_activate(struct led_classdev *led_cdev)
{}

static int power_supply_register_led_trigger(struct power_supply *psy,
					     const char *name_template,
					     struct led_trigger **tp, int *err)
{}

static void power_supply_unregister_led_trigger(struct led_trigger *trig)
{}

static void power_supply_update_bat_leds(struct power_supply *psy)
{}

static void power_supply_remove_bat_triggers(struct power_supply *psy)
{}

static int power_supply_create_bat_triggers(struct power_supply *psy)
{}

/* Generated power specific LEDs triggers. */

static void power_supply_update_gen_leds(struct power_supply *psy)
{}

static int power_supply_create_gen_triggers(struct power_supply *psy)
{}

static void power_supply_remove_gen_triggers(struct power_supply *psy)
{}

/* Choice what triggers to create&update. */

void power_supply_update_leds(struct power_supply *psy)
{}

int power_supply_create_triggers(struct power_supply *psy)
{}

void power_supply_remove_triggers(struct power_supply *psy)
{}