#ifndef __CPUPOWER_HELPERS_SYSFS_H__ #define __CPUPOWER_HELPERS_SYSFS_H__ #define PATH_TO_CPU "/sys/devices/system/cpu/" #define MAX_LINE_LEN 255 #define SYSFS_PATH_MAX 255 extern unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen); extern unsigned int sysfs_idlestate_file_exists(unsigned int cpu, unsigned int idlestate, const char *fname); extern int sysfs_is_cpu_online(unsigned int cpu); extern int sysfs_is_idlestate_disabled(unsigned int cpu, unsigned int idlestate); extern int sysfs_idlestate_disable(unsigned int cpu, unsigned int idlestate, unsigned int disable); extern unsigned long sysfs_get_idlestate_latency(unsigned int cpu, unsigned int idlestate); extern unsigned long sysfs_get_idlestate_usage(unsigned int cpu, unsigned int idlestate); extern unsigned long long sysfs_get_idlestate_time(unsigned int cpu, unsigned int idlestate); extern char *sysfs_get_idlestate_name(unsigned int cpu, unsigned int idlestate); extern char *sysfs_get_idlestate_desc(unsigned int cpu, unsigned int idlestate); extern unsigned int sysfs_get_idlestate_count(unsigned int cpu); extern char *sysfs_get_cpuidle_governor(void); extern char *sysfs_get_cpuidle_driver(void); extern int sysfs_get_sched(const char *smt_mc); extern int sysfs_set_sched(const char *smt_mc, int val); #endif /* __CPUPOWER_HELPERS_SYSFS_H__ */ rm> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/net/caif/cfcnfg.h
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2016-11-10 10:59:15 +0530
committerMark Brown <broonie@kernel.org>2016-11-11 15:36:38 +0000
commit205321f0927ad2303e7f71767d402e0ff36a9a87 (patch)
treefc103f416e5df36a8a2a6c5d88f24f4f6c5a65bc /include/net/caif/cfcnfg.h
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: lp873x: Add support for populating input supply
In order to have a proper topology of regulators for a platform, each registering regulator needs to populate supply_name field for identifying its supply's name. Add supply_name field for lp873x regulators. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/net/caif/cfcnfg.h')