Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *  Functions private to power supply class
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *  Copyright © 2007  Anton Vorontsov <cbou@mail.ru>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *  Copyright © 2004  Szabolcs Gyurko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *  Copyright © 2003  Ian Molton <spyro@f2s.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  *  Modified: 2004, Oct     Szabolcs Gyurko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct device;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct device_type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct power_supply;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #ifdef CONFIG_SYSFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern void power_supply_init_attrs(struct device_type *dev_type);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) extern int power_supply_uevent(struct device *dev, struct kobj_uevent_env *env);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) static inline void power_supply_init_attrs(struct device_type *dev_type) {}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define power_supply_uevent NULL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #endif /* CONFIG_SYSFS */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #ifdef CONFIG_LEDS_TRIGGERS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern void power_supply_update_leds(struct power_supply *psy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern int power_supply_create_triggers(struct power_supply *psy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) extern void power_supply_remove_triggers(struct power_supply *psy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) static inline void power_supply_update_leds(struct power_supply *psy) {}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) static inline int power_supply_create_triggers(struct power_supply *psy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) { return 0; }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) static inline void power_supply_remove_triggers(struct power_supply *psy) {}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #endif /* CONFIG_LEDS_TRIGGERS */