openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/sysfsutils/2.1.0-r5/sysfsutils-2.1.0/cmd/systool.c
static void show_classdev_parent(struct sysfs_class_device* dev, int level)
{
    struct sysfs_class_device* parent;

    parent = sysfs_get_classdev_parent(dev);
    if (parent)
    {
        fprintf(stdout, "\n");
        indent(level);
        fprintf(stdout, "Class device \"%s\"'s parent is\n", dev->name);
        show_class_device(parent, level + 2);
    }
}
/**
 * show_classdev_parent: prints the class device's parent if present
 * @dev: class device whose parent is needed
 */
prints the class device's parent if present
@dev: class device whose parent is needed
prints the class device ' s parent if present @dev : class device whose parent is needed
static void show_classdev_parent(struct sysfs_class_device* dev, int level)
{
    struct sysfs_class_device* parent;
    parent = sysfs_get_classdev_parent(dev);
    if (parent)
    {
        fprintf(stdout, "\n");
        indent(level);
        fprintf(stdout, "Class device \"%s\"'s parent is\n", dev->name);
        show_class_device(parent, level + 2);
    }
}
static void show_classdev_parent ( struct sysfs_class_device * dev , int level ) { struct sysfs_class_device * parent ; parent = sysfs_get_classdev_parent ( dev ) ; if ( parent ) { fprintf ( stdout , " \n " ) ; indent ( level ) ; fprintf ( stdout , " \" \" \n " , dev -> name ) ; show_class_device ( parent , level + 2 ) ; } }
show_classdev_parent: prints the class device's parent if present
 @dev: class device whose parent is needed
show_classdev_parent : prints the class device ' s parent if present @dev : class device whose parent is needed