Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/platform/x86/
Dsony-laptop.c2606 static struct device_attribute *lowbatt_handle; variable
2642 lowbatt_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_lowbatt_setup()
2643 if (!lowbatt_handle) in sony_nc_lowbatt_setup()
2646 sysfs_attr_init(&lowbatt_handle->attr); in sony_nc_lowbatt_setup()
2647 lowbatt_handle->attr.name = "lowbatt_hibernate"; in sony_nc_lowbatt_setup()
2648 lowbatt_handle->attr.mode = S_IRUGO | S_IWUSR; in sony_nc_lowbatt_setup()
2649 lowbatt_handle->show = sony_nc_lowbatt_show; in sony_nc_lowbatt_setup()
2650 lowbatt_handle->store = sony_nc_lowbatt_store; in sony_nc_lowbatt_setup()
2652 result = device_create_file(&pd->dev, lowbatt_handle); in sony_nc_lowbatt_setup()
2654 kfree(lowbatt_handle); in sony_nc_lowbatt_setup()
[all …]