diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-03 09:55:54 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-03 09:55:54 +0100 |
commit | 601bf0fcc62854af68b35d857696be9a4a9e567d (patch) | |
tree | 39e6eb29bdd79e49b474a64558d81f6fb9d34c94 /include | |
parent | 701d565c2a1c50e84e7035048968bc81fd869c87 (diff) | |
parent | a4d39ca0f1e0ceeab4e1f817a9c32b9c0a4f01c2 (diff) | |
download | barebox-601bf0fcc62854af68b35d857696be9a4a9e567d.tar.gz barebox-601bf0fcc62854af68b35d857696be9a4a9e567d.tar.xz |
Merge branch 'for-next/misc'
Diffstat (limited to 'include')
-rw-r--r-- | include/console.h | 2 | ||||
-rw-r--r-- | include/envfs.h | 18 | ||||
-rw-r--r-- | include/linux/phy.h | 13 |
3 files changed, 28 insertions, 5 deletions
diff --git a/include/console.h b/include/console.h index 550b440376..6da0199aba 100644 --- a/include/console.h +++ b/include/console.h @@ -49,6 +49,8 @@ struct console_device { unsigned char f_active; unsigned int baudrate; + + const char *linux_console_name; }; int console_register(struct console_device *cdev); diff --git a/include/envfs.h b/include/envfs.h index e9372b3867..f8b24eda39 100644 --- a/include/envfs.h +++ b/include/envfs.h @@ -90,11 +90,23 @@ struct envfs_super { #endif #define ENV_FLAG_NO_OVERWRITE (1 << 0) -int envfs_load(char *filename, char *dirname, unsigned flags); -int envfs_save(char *filename, char *dirname); +int envfs_load(const char *filename, char *dirname, unsigned flags); +int envfs_save(const char *filename, char *dirname); /* defaults to /dev/env0 */ -extern char *default_environment_path; +#ifdef CONFIG_ENV_HANDLING +void default_environment_path_set(char *path); +char *default_environment_path_get(void); +#else +static inline void default_environment_path_set(char *path) +{ +} + +static inline char *default_environment_path_get(void) +{ + return NULL; +} +#endif int envfs_register_partition(const char *devname, unsigned int partnr); diff --git a/include/linux/phy.h b/include/linux/phy.h index 9994e1107d..c8980b0191 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -296,13 +296,22 @@ int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask, int (*run)(struct phy_device *)); int phy_register_fixup_for_id(const char *bus_id, int (*run)(struct phy_device *)); -int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask, - int (*run)(struct phy_device *)); int phy_scan_fixups(struct phy_device *phydev); int phy_read_mmd_indirect(struct phy_device *phydev, int prtad, int devad); void phy_write_mmd_indirect(struct phy_device *phydev, int prtad, int devad, u16 data); +#ifdef CONFIG_PHYLIB +int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask, + int (*run)(struct phy_device *)); +#else +static inline int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask, + int (*run)(struct phy_device *)) +{ + return -ENOSYS; +} +#endif + extern struct bus_type mdio_bus_type; #endif /* __PHYDEV_H__ */ |