[PATCH] rename namedev's get_attr() to be main namedev_name_device() as that's what it really is.
This commit is contained in:
parent
8448980019
commit
5c6f0fb0dc
14
namedev.c
14
namedev.c
|
@ -796,7 +796,6 @@ static int do_number(struct sysfs_class_device *class_dev, struct udevice *udev,
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int do_topology(struct sysfs_class_device *class_dev, struct udevice *udev, struct sysfs_device *sysfs_device)
|
static int do_topology(struct sysfs_class_device *class_dev, struct udevice *udev, struct sysfs_device *sysfs_device)
|
||||||
{
|
{
|
||||||
struct config_device *dev;
|
struct config_device *dev;
|
||||||
|
@ -901,7 +900,7 @@ static void do_kernelname(struct sysfs_class_device *class_dev, struct udevice *
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int get_attr(struct sysfs_class_device *class_dev, struct udevice *udev)
|
int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *udev)
|
||||||
{
|
{
|
||||||
struct sysfs_device *sysfs_device = NULL;
|
struct sysfs_device *sysfs_device = NULL;
|
||||||
struct sysfs_class_device *class_dev_parent = NULL;
|
struct sysfs_class_device *class_dev_parent = NULL;
|
||||||
|
@ -994,17 +993,6 @@ done:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *dev)
|
|
||||||
{
|
|
||||||
int retval;
|
|
||||||
|
|
||||||
retval = get_attr(class_dev, dev);
|
|
||||||
if (retval)
|
|
||||||
dbg("get_attr failed");
|
|
||||||
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
|
|
||||||
int namedev_init(void)
|
int namedev_init(void)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|
Loading…
Reference in New Issue