Lines Matching defs:hsf_handle
2677 static struct device_attribute *fan_handle, *hsf_handle;
2728 hsf_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2729 if (!hsf_handle) {
2740 sysfs_attr_init(&hsf_handle->attr);
2741 hsf_handle->attr.name = "fan_forced";
2742 hsf_handle->attr.mode = S_IRUGO | S_IWUSR;
2743 hsf_handle->show = sony_nc_hsfan_show;
2744 hsf_handle->store = sony_nc_hsfan_store;
2750 result = device_create_file(&pd->dev, hsf_handle);
2760 kfree(hsf_handle);
2761 hsf_handle = NULL;
2776 if (hsf_handle) {
2777 device_remove_file(&pd->dev, hsf_handle);
2778 kfree(hsf_handle);
2779 hsf_handle = NULL;