Lines Matching refs:hsc_handle
2537 static struct device_attribute *hsc_handle;
2581 hsc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2582 if (!hsc_handle)
2585 sysfs_attr_init(&hsc_handle->attr);
2586 hsc_handle->attr.name = "battery_highspeed_charging";
2587 hsc_handle->attr.mode = S_IRUGO | S_IWUSR;
2588 hsc_handle->show = sony_nc_highspeed_charging_show;
2589 hsc_handle->store = sony_nc_highspeed_charging_store;
2591 result = device_create_file(&pd->dev, hsc_handle);
2593 kfree(hsc_handle);
2594 hsc_handle = NULL;
2603 if (hsc_handle) {
2604 device_remove_file(&pd->dev, hsc_handle);
2605 kfree(hsc_handle);
2606 hsc_handle = NULL;