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/lib/sysfs_class.c
struct sysfs_attribute*
    sysfs_get_classdev_attr(struct sysfs_class_device* clsdev, const char* name)
{
    if (!clsdev || !name)
    {
        errno = EINVAL;
        return NULL;
    }
    return get_attribute(clsdev, (char*)name);
}
/**
 * sysfs_get_classdev_attr: searches class device's attributes by name
 * @clsdev: class device to look through
 * @name: attribute name to get
 * returns sysfs_attribute reference with success or NULL with error
 */
searches class device's attributes by name
@clsdev: class device to look through
@name: attribute name to get
returns sysfs_attribute reference with success or NULL with error
searches class device ' s attributes by name @clsdev : class device to look through @name : attribute name to get returns sysfs_attribute reference with success or NULL with error
struct sysfs_attribute*
    sysfs_get_classdev_attr(struct sysfs_class_device* clsdev, const char* name)
{
    if (!clsdev || !name)
    {
        errno = EINVAL;
        return NULL;
    }
    return get_attribute(clsdev, (char*)name);
}
struct sysfs_attribute * sysfs_get_classdev_attr ( struct sysfs_class_device * clsdev , const char * name ) { if ( ! clsdev || ! name ) { errno = EINVAL ; return NULL ; } return get_attribute ( clsdev , ( char * ) name ) ; }
sysfs_get_classdev_attr: searches class device's attributes by name
 @clsdev: class device to look through
 @name: attribute name to get
 returns sysfs_attribute reference with success or NULL with error
sysfs_get_classdev_attr : searches class device ' s attributes by name @clsdev : class device to look through @name : attribute name to get returns sysfs_attribute reference with success or NULL with error