#include #include #include #include #include #include #include #include #include void change_floppy(char *fmt, ...); void mount_block_root(char *name, int flags); void mount_root(void); extern int root_mountflags; static inline int create_dev(char *name, dev_t dev) { sys_unlink(name); return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); } #if BITS_PER_LONG == 32 static inline u32 bstat(char *name) { struct stat64 stat; if (sys_stat64(name, &stat) != 0) return 0; if (!S_ISBLK(stat.st_mode)) return 0; if (stat.st_rdev != (u32)stat.st_rdev) return 0; return stat.st_rdev; } #else static inline u32 bstat(char *name) { struct stat stat; if (sys_newstat(name, &stat) != 0) return 0; if (!S_ISBLK(stat.st_mode)) return 0; return stat.st_rdev; } #endif #ifdef CONFIG_BLK_DEV_RAM int __init rd_load_disk(int n); int __init rd_load_image(char *from); #else static inline int rd_load_disk(int n) { return 0; } static inline int rd_load_image(char *from) { return 0; } #endif #ifdef CONFIG_BLK_DEV_INITRD bool __init initrd_load(void); #else static inline bool initrd_load(void) { return false; } #endif #ifdef CONFIG_BLK_DEV_MD void md_run_setup(void); #else static inline void md_run_setup(void) {} #endif switch'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
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 /sound/soc/sunxi
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 'sound/soc/sunxi')