#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"
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)
{ … }
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)
{ … }
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)
{ … }