Lines Matching refs:fan_handle
2669 static struct device_attribute *fan_handle, *hsf_handle; variable
2716 fan_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_fanspeed_setup()
2717 if (!fan_handle) in sony_nc_fanspeed_setup()
2726 sysfs_attr_init(&fan_handle->attr); in sony_nc_fanspeed_setup()
2727 fan_handle->attr.name = "fanspeed"; in sony_nc_fanspeed_setup()
2728 fan_handle->attr.mode = S_IRUGO; in sony_nc_fanspeed_setup()
2729 fan_handle->show = sony_nc_fanspeed_show; in sony_nc_fanspeed_setup()
2730 fan_handle->store = NULL; in sony_nc_fanspeed_setup()
2738 result = device_create_file(&pd->dev, fan_handle); in sony_nc_fanspeed_setup()
2749 device_remove_file(&pd->dev, fan_handle); in sony_nc_fanspeed_setup()
2756 kfree(fan_handle); in sony_nc_fanspeed_setup()
2757 fan_handle = NULL; in sony_nc_fanspeed_setup()
2763 if (fan_handle) { in sony_nc_fanspeed_cleanup()
2764 device_remove_file(&pd->dev, fan_handle); in sony_nc_fanspeed_cleanup()
2765 kfree(fan_handle); in sony_nc_fanspeed_cleanup()
2766 fan_handle = NULL; in sony_nc_fanspeed_cleanup()