Searched refs:uc_handle (Results 1 – 1 of 1) sorted by relevance
2808 static struct device_attribute *uc_handle; variable2852 uc_handle = kzalloc(sizeof(struct device_attribute), GFP_KERNEL); in sony_nc_usb_charge_setup()2853 if (!uc_handle) in sony_nc_usb_charge_setup()2856 sysfs_attr_init(&uc_handle->attr); in sony_nc_usb_charge_setup()2857 uc_handle->attr.name = "usb_charge"; in sony_nc_usb_charge_setup()2858 uc_handle->attr.mode = S_IRUGO | S_IWUSR; in sony_nc_usb_charge_setup()2859 uc_handle->show = sony_nc_usb_charge_show; in sony_nc_usb_charge_setup()2860 uc_handle->store = sony_nc_usb_charge_store; in sony_nc_usb_charge_setup()2862 result = device_create_file(&pd->dev, uc_handle); in sony_nc_usb_charge_setup()2864 kfree(uc_handle); in sony_nc_usb_charge_setup()[all …]