Lines Matching refs:lbuf
812 char *lbuf; in lg4ff_alternate_modes_store() local
827 lbuf = kasprintf(GFP_KERNEL, "%s", buf); in lg4ff_alternate_modes_store()
828 if (!lbuf) in lg4ff_alternate_modes_store()
831 i = strlen(lbuf); in lg4ff_alternate_modes_store()
832 if (lbuf[i-1] == '\n') { in lg4ff_alternate_modes_store()
834 kfree(lbuf); in lg4ff_alternate_modes_store()
837 lbuf[i-1] = '\0'; in lg4ff_alternate_modes_store()
845 if (!strcmp(tag, lbuf)) { in lg4ff_alternate_modes_store()
856 hid_info(hid, "Requested mode \"%s\" is not supported by the device\n", lbuf); in lg4ff_alternate_modes_store()
857 kfree(lbuf); in lg4ff_alternate_modes_store()
860 kfree(lbuf); /* Not needed anymore */ in lg4ff_alternate_modes_store()