Lines Matching defs:uc_handle
2784 static struct device_attribute *uc_handle;
2828 uc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL);
2829 if (!uc_handle)
2832 sysfs_attr_init(&uc_handle->attr);
2833 uc_handle->attr.name = "usb_charge";
2834 uc_handle->attr.mode = S_IRUGO | S_IWUSR;
2835 uc_handle->show = sony_nc_usb_charge_show;
2836 uc_handle->store = sony_nc_usb_charge_store;
2838 result = device_create_file(&pd->dev, uc_handle);
2840 kfree(uc_handle);
2841 uc_handle = NULL;
2850 if (uc_handle) {
2851 device_remove_file(&pd->dev, uc_handle);
2852 kfree(uc_handle);
2853 uc_handle = NULL;