Lines Matching refs:firmware
236 char *firmware; in firmware_show() local
241 firmware = cdev->firmware; in firmware_show()
243 if (firmware) in firmware_show()
244 return scnprintf(buf, PAGE_SIZE, "%s\n", firmware); in firmware_show()
258 kfree(cdev->firmware); in firmware_store()
260 cdev->firmware = kmalloc(count + 1, GFP_KERNEL); in firmware_store()
261 if (!cdev->firmware) { in firmware_store()
265 strncpy(cdev->firmware, buf, count); in firmware_store()
267 if (cdev->firmware[count - 1] == '\n') in firmware_store()
268 cdev->firmware[count - 1] = '\0'; in firmware_store()
270 cdev->firmware[count] = '\0'; in firmware_store()
275 static DEVICE_ATTR_RW(firmware);