Lines Matching refs:hsc_handle
2561 static struct device_attribute *hsc_handle; variable
2605 hsc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_highspeed_charging_setup()
2606 if (!hsc_handle) in sony_nc_highspeed_charging_setup()
2609 sysfs_attr_init(&hsc_handle->attr); in sony_nc_highspeed_charging_setup()
2610 hsc_handle->attr.name = "battery_highspeed_charging"; in sony_nc_highspeed_charging_setup()
2611 hsc_handle->attr.mode = S_IRUGO | S_IWUSR; in sony_nc_highspeed_charging_setup()
2612 hsc_handle->show = sony_nc_highspeed_charging_show; in sony_nc_highspeed_charging_setup()
2613 hsc_handle->store = sony_nc_highspeed_charging_store; in sony_nc_highspeed_charging_setup()
2615 result = device_create_file(&pd->dev, hsc_handle); in sony_nc_highspeed_charging_setup()
2617 kfree(hsc_handle); in sony_nc_highspeed_charging_setup()
2618 hsc_handle = NULL; in sony_nc_highspeed_charging_setup()
2627 if (hsc_handle) { in sony_nc_highspeed_charging_cleanup()
2628 device_remove_file(&pd->dev, hsc_handle); in sony_nc_highspeed_charging_cleanup()
2629 kfree(hsc_handle); in sony_nc_highspeed_charging_cleanup()
2630 hsc_handle = NULL; in sony_nc_highspeed_charging_cleanup()