9
0
Fork 0

param: remove now unused dev_[gs]et_param_ip

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-04-06 18:28:40 +02:00
parent 21a2691f06
commit a280858594
2 changed files with 0 additions and 32 deletions

View File

@ -57,10 +57,6 @@ void dev_remove_parameters(struct device_d *dev);
int dev_param_set_generic(struct device_d *dev, struct param_d *p, int dev_param_set_generic(struct device_d *dev, struct param_d *p,
const char *val); const char *val);
/* Convenience functions to handle a parameter as an ip address */
int dev_set_param_ip(struct device_d *dev, char *name, IPaddr_t ip);
IPaddr_t dev_get_param_ip(struct device_d *dev, char *name);
#else #else
static inline const char *dev_get_param(struct device_d *dev, const char *name) static inline const char *dev_get_param(struct device_d *dev, const char *name)
{ {
@ -129,17 +125,6 @@ static inline int dev_param_set_generic(struct device_d *dev, struct param_d *p,
{ {
return 0; return 0;
} }
/* Convenience functions to handle a parameter as an ip address */
static inline int dev_set_param_ip(struct device_d *dev, char *name, IPaddr_t ip)
{
return 0;
}
static inline IPaddr_t dev_get_param_ip(struct device_d *dev, char *name)
{
return 0;
}
#endif #endif
#endif /* PARAM_H */ #endif /* PARAM_H */

View File

@ -59,23 +59,6 @@ const char *dev_get_param(struct device_d *dev, const char *name)
return param->get(dev, param); return param->get(dev, param);
} }
#ifdef CONFIG_NET
IPaddr_t dev_get_param_ip(struct device_d *dev, char *name)
{
IPaddr_t ip;
if (string_to_ip(dev_get_param(dev, name), &ip))
return 0;
return ip;
}
int dev_set_param_ip(struct device_d *dev, char *name, IPaddr_t ip)
{
return dev_set_param(dev, name, ip_to_string(ip));
}
#endif
/** /**
* dev_set_param - set a parameter of a device to a new value * dev_set_param - set a parameter of a device to a new value
* @param dev The device * @param dev The device