Searched refs:uc_handle (Results 1 – 1 of 1) sorted by relevance
2784 static struct device_attribute *uc_handle; variable2828 uc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_usb_charge_setup()2829 if (!uc_handle) in sony_nc_usb_charge_setup()2832 sysfs_attr_init(&uc_handle->attr); in sony_nc_usb_charge_setup()2833 uc_handle->attr.name = "usb_charge"; in sony_nc_usb_charge_setup()2834 uc_handle->attr.mode = S_IRUGO | S_IWUSR; in sony_nc_usb_charge_setup()2835 uc_handle->show = sony_nc_usb_charge_show; in sony_nc_usb_charge_setup()2836 uc_handle->store = sony_nc_usb_charge_store; in sony_nc_usb_charge_setup()2838 result = device_create_file(&pd->dev, uc_handle); in sony_nc_usb_charge_setup()2840 kfree(uc_handle); in sony_nc_usb_charge_setup()[all …]