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