Lines Matching defs:hsc_handle
2552 static struct device_attribute *hsc_handle;
2596 hsc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2597 if (!hsc_handle)
2600 sysfs_attr_init(&hsc_handle->attr);
2601 hsc_handle->attr.name = "battery_highspeed_charging";
2602 hsc_handle->attr.mode = S_IRUGO | S_IWUSR;
2603 hsc_handle->show = sony_nc_highspeed_charging_show;
2604 hsc_handle->store = sony_nc_highspeed_charging_store;
2606 result = device_create_file(&pd->dev, hsc_handle);
2608 kfree(hsc_handle);
2609 hsc_handle = NULL;
2618 if (hsc_handle) {
2619 device_remove_file(&pd->dev, hsc_handle);
2620 kfree(hsc_handle);
2621 hsc_handle = NULL;