Lines Matching refs:hsf_handle
2676 static struct device_attribute *fan_handle, *hsf_handle; variable
2727 hsf_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_fanspeed_setup()
2728 if (!hsf_handle) { in sony_nc_fanspeed_setup()
2739 sysfs_attr_init(&hsf_handle->attr); in sony_nc_fanspeed_setup()
2740 hsf_handle->attr.name = "fan_forced"; in sony_nc_fanspeed_setup()
2741 hsf_handle->attr.mode = S_IRUGO | S_IWUSR; in sony_nc_fanspeed_setup()
2742 hsf_handle->show = sony_nc_hsfan_show; in sony_nc_fanspeed_setup()
2743 hsf_handle->store = sony_nc_hsfan_store; in sony_nc_fanspeed_setup()
2749 result = device_create_file(&pd->dev, hsf_handle); in sony_nc_fanspeed_setup()
2759 kfree(hsf_handle); in sony_nc_fanspeed_setup()
2760 hsf_handle = NULL; in sony_nc_fanspeed_setup()
2775 if (hsf_handle) { in sony_nc_fanspeed_cleanup()
2776 device_remove_file(&pd->dev, hsf_handle); in sony_nc_fanspeed_cleanup()
2777 kfree(hsf_handle); in sony_nc_fanspeed_cleanup()
2778 hsf_handle = NULL; in sony_nc_fanspeed_cleanup()