Lines Matching refs:lbuf
646 char *lbuf; in lg4ff_alternate_modes_store() local
661 lbuf = kasprintf(GFP_KERNEL, "%s", buf); in lg4ff_alternate_modes_store()
662 if (!lbuf) in lg4ff_alternate_modes_store()
665 i = strlen(lbuf); in lg4ff_alternate_modes_store()
666 if (lbuf[i-1] == '\n') { in lg4ff_alternate_modes_store()
668 kfree(lbuf); in lg4ff_alternate_modes_store()
671 lbuf[i-1] = '\0'; in lg4ff_alternate_modes_store()
679 if (!strcmp(tag, lbuf)) { in lg4ff_alternate_modes_store()
690 hid_info(hid, "Requested mode \"%s\" is not supported by the device\n", lbuf); in lg4ff_alternate_modes_store()
691 kfree(lbuf); in lg4ff_alternate_modes_store()
694 kfree(lbuf); /* Not needed anymore */ in lg4ff_alternate_modes_store()