Blame view

drivers/power/power_supply.h 1.09 KB
4a11b59d8   Anton Vorontsov   [BATTERY] Univers...
1
2
3
4
5
6
7
8
9
10
11
12
13
  /*
   *  Functions private to power supply class
   *
   *  Copyright © 2007  Anton Vorontsov <cbou@mail.ru>
   *  Copyright © 2004  Szabolcs Gyurko
   *  Copyright © 2003  Ian Molton <spyro@f2s.com>
   *
   *  Modified: 2004, Oct     Szabolcs Gyurko
   *
   *  You may use this code as per GPL version 2
   */
  
  #ifdef CONFIG_SYSFS
5f487cd34   Anton Vorontsov   power_supply: Use...
14
  extern void power_supply_init_attrs(struct device_type *dev_type);
7eff2e7a8   Kay Sievers   Driver core: chan...
15
  extern int power_supply_uevent(struct device *dev, struct kobj_uevent_env *env);
4a11b59d8   Anton Vorontsov   [BATTERY] Univers...
16
17
  
  #else
5f487cd34   Anton Vorontsov   power_supply: Use...
18
  static inline void power_supply_init_attrs(struct device_type *dev_type) {}
4a11b59d8   Anton Vorontsov   [BATTERY] Univers...
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  #define power_supply_uevent NULL
  
  #endif /* CONFIG_SYSFS */
  
  #ifdef CONFIG_LEDS_TRIGGERS
  
  extern void power_supply_update_leds(struct power_supply *psy);
  extern int power_supply_create_triggers(struct power_supply *psy);
  extern void power_supply_remove_triggers(struct power_supply *psy);
  
  #else
  
  static inline void power_supply_update_leds(struct power_supply *psy) {}
  static inline int power_supply_create_triggers(struct power_supply *psy)
  { return 0; }
  static inline void power_supply_remove_triggers(struct power_supply *psy) {}
  
  #endif /* CONFIG_LEDS_TRIGGERS */