Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/platform/x86/
Dsony-laptop.c2910 static struct device_attribute *sc_handle; variable
2935 sc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_smart_conn_setup()
2936 if (!sc_handle) in sony_nc_smart_conn_setup()
2939 sysfs_attr_init(&sc_handle->attr); in sony_nc_smart_conn_setup()
2940 sc_handle->attr.name = "smart_connect"; in sony_nc_smart_conn_setup()
2941 sc_handle->attr.mode = S_IWUSR; in sony_nc_smart_conn_setup()
2942 sc_handle->show = NULL; in sony_nc_smart_conn_setup()
2943 sc_handle->store = sony_nc_smart_conn_store; in sony_nc_smart_conn_setup()
2945 result = device_create_file(&pd->dev, sc_handle); in sony_nc_smart_conn_setup()
2947 kfree(sc_handle); in sony_nc_smart_conn_setup()
[all …]