Lines Matching defs:uc_handle
2799 static struct device_attribute *uc_handle;
2843 uc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2844 if (!uc_handle)
2847 sysfs_attr_init(&uc_handle->attr);
2848 uc_handle->attr.name = "usb_charge";
2849 uc_handle->attr.mode = S_IRUGO | S_IWUSR;
2850 uc_handle->show = sony_nc_usb_charge_show;
2851 uc_handle->store = sony_nc_usb_charge_store;
2853 result = device_create_file(&pd->dev, uc_handle);
2855 kfree(uc_handle);
2856 uc_handle = NULL;
2865 if (uc_handle) {
2866 device_remove_file(&pd->dev, uc_handle);
2867 kfree(uc_handle);
2868 uc_handle = NULL;