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