Lines Matching refs:devattr
657 struct device_attribute devattr; /* sysfs attribute */ member
670 .devattr = __ATTR(_name, 0, sony_nc_sysfs_show, sony_nc_sysfs_store), \
832 struct device_attribute devattr; member
872 sysfs_attr_init(&handles->devattr.attr); in sony_nc_handles_setup()
873 handles->devattr.attr.name = "handles"; in sony_nc_handles_setup()
874 handles->devattr.attr.mode = S_IRUGO; in sony_nc_handles_setup()
875 handles->devattr.show = sony_nc_handles_show; in sony_nc_handles_setup()
878 if (device_create_file(&pd->dev, &handles->devattr)) { in sony_nc_handles_setup()
892 device_remove_file(&pd->dev, &handles->devattr); in sony_nc_handles_cleanup()
975 container_of(attr, struct sony_nc_value, devattr); in sony_nc_sysfs_show()
998 container_of(attr, struct sony_nc_value, devattr); in sony_nc_sysfs_store()
3218 item->devattr.attr.mode |= S_IRUGO; in sony_nc_add()
3229 item->devattr.attr.mode |= S_IWUSR; in sony_nc_add()
3234 if (item->devattr.attr.mode != 0) { in sony_nc_add()
3237 &item->devattr); in sony_nc_add()
3248 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_add()
3274 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_remove()