Lines Matching refs:hsf_handle
2701 static struct device_attribute *fan_handle, *hsf_handle; variable
2752 hsf_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_fanspeed_setup()
2753 if (!hsf_handle) { in sony_nc_fanspeed_setup()
2764 sysfs_attr_init(&hsf_handle->attr); in sony_nc_fanspeed_setup()
2765 hsf_handle->attr.name = "fan_forced"; in sony_nc_fanspeed_setup()
2766 hsf_handle->attr.mode = S_IRUGO | S_IWUSR; in sony_nc_fanspeed_setup()
2767 hsf_handle->show = sony_nc_hsfan_show; in sony_nc_fanspeed_setup()
2768 hsf_handle->store = sony_nc_hsfan_store; in sony_nc_fanspeed_setup()
2774 result = device_create_file(&pd->dev, hsf_handle); in sony_nc_fanspeed_setup()
2784 kfree(hsf_handle); in sony_nc_fanspeed_setup()
2785 hsf_handle = NULL; in sony_nc_fanspeed_setup()
2800 if (hsf_handle) { in sony_nc_fanspeed_cleanup()
2801 device_remove_file(&pd->dev, hsf_handle); in sony_nc_fanspeed_cleanup()
2802 kfree(hsf_handle); in sony_nc_fanspeed_cleanup()
2803 hsf_handle = NULL; in sony_nc_fanspeed_cleanup()