Searched refs:fan_handle (Results 1 – 1 of 1) sorted by relevance
2676 static struct device_attribute *fan_handle, *hsf_handle; variable2723 fan_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_fanspeed_setup()2724 if (!fan_handle) in sony_nc_fanspeed_setup()2733 sysfs_attr_init(&fan_handle->attr); in sony_nc_fanspeed_setup()2734 fan_handle->attr.name = "fanspeed"; in sony_nc_fanspeed_setup()2735 fan_handle->attr.mode = S_IRUGO; in sony_nc_fanspeed_setup()2736 fan_handle->show = sony_nc_fanspeed_show; in sony_nc_fanspeed_setup()2737 fan_handle->store = NULL; in sony_nc_fanspeed_setup()2745 result = device_create_file(&pd->dev, fan_handle); in sony_nc_fanspeed_setup()2756 device_remove_file(&pd->dev, fan_handle); in sony_nc_fanspeed_setup()[all …]