Home
last modified time | relevance | path

Searched refs:hsf_handle (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/platform/x86/
Dsony-laptop.c2672 static struct device_attribute *fan_handle, *hsf_handle; variable
2723 hsf_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_fanspeed_setup()
2724 if (!hsf_handle) { in sony_nc_fanspeed_setup()
2735 sysfs_attr_init(&hsf_handle->attr); in sony_nc_fanspeed_setup()
2736 hsf_handle->attr.name = "fan_forced"; in sony_nc_fanspeed_setup()
2737 hsf_handle->attr.mode = S_IRUGO | S_IWUSR; in sony_nc_fanspeed_setup()
2738 hsf_handle->show = sony_nc_hsfan_show; in sony_nc_fanspeed_setup()
2739 hsf_handle->store = sony_nc_hsfan_store; in sony_nc_fanspeed_setup()
2745 result = device_create_file(&pd->dev, hsf_handle); in sony_nc_fanspeed_setup()
2755 kfree(hsf_handle); in sony_nc_fanspeed_setup()
[all …]