Lines Matching refs:vendor_attribute
58 struct sm_sysfs_attribute *vendor_attribute; in sm_create_sysfs_attributes() local
67 vendor_attribute = in sm_create_sysfs_attributes()
69 if (!vendor_attribute) in sm_create_sysfs_attributes()
72 sysfs_attr_init(&vendor_attribute->dev_attr.attr); in sm_create_sysfs_attributes()
74 vendor_attribute->data = vendor; in sm_create_sysfs_attributes()
75 vendor_attribute->len = strlen(vendor); in sm_create_sysfs_attributes()
76 vendor_attribute->dev_attr.attr.name = "vendor"; in sm_create_sysfs_attributes()
77 vendor_attribute->dev_attr.attr.mode = S_IRUGO; in sm_create_sysfs_attributes()
78 vendor_attribute->dev_attr.show = sm_attr_show; in sm_create_sysfs_attributes()
86 attributes[0] = &vendor_attribute->dev_attr.attr; in sm_create_sysfs_attributes()
97 kfree(vendor_attribute); in sm_create_sysfs_attributes()