Loading drivers/hid/hid-multitouch.c +3 −10 Original line number Diff line number Diff line Loading @@ -1594,7 +1594,6 @@ static void mt_post_parse(struct mt_device *td, struct mt_application *app) static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi) { struct mt_device *td = hid_get_drvdata(hdev); char *name; const char *suffix = NULL; struct mt_report_data *rdata; struct mt_application *mt_application = NULL; Loading Loading @@ -1645,15 +1644,9 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi) break; } if (suffix) { name = devm_kzalloc(&hi->input->dev, strlen(hdev->name) + strlen(suffix) + 2, GFP_KERNEL); if (name) { sprintf(name, "%s %s", hdev->name, suffix); hi->input->name = name; } } if (suffix) hi->input->name = devm_kasprintf(&hdev->dev, GFP_KERNEL, "%s %s", hdev->name, suffix); return 0; } Loading drivers/hid/hid-nvidia-shield.c +1 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ static struct input_dev *shield_allocate_input_dev(struct hid_device *hdev, idev->id.product = hdev->product; idev->id.version = hdev->version; idev->uniq = hdev->uniq; idev->name = devm_kasprintf(&idev->dev, GFP_KERNEL, "%s %s", hdev->name, idev->name = devm_kasprintf(&hdev->dev, GFP_KERNEL, "%s %s", hdev->name, name_suffix); if (!idev->name) goto err_name; Loading drivers/hid/hid-uclogic-core.c +3 −10 Original line number Diff line number Diff line Loading @@ -85,10 +85,8 @@ static int uclogic_input_configured(struct hid_device *hdev, { struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); struct uclogic_params *params = &drvdata->params; char *name; const char *suffix = NULL; struct hid_field *field; size_t len; size_t i; const struct uclogic_params_frame *frame; Loading Loading @@ -146,14 +144,9 @@ static int uclogic_input_configured(struct hid_device *hdev, } } if (suffix) { len = strlen(hdev->name) + 2 + strlen(suffix); name = devm_kzalloc(&hi->input->dev, len, GFP_KERNEL); if (name) { snprintf(name, len, "%s %s", hdev->name, suffix); hi->input->name = name; } } if (suffix) hi->input->name = devm_kasprintf(&hdev->dev, GFP_KERNEL, "%s %s", hdev->name, suffix); return 0; } Loading Loading
drivers/hid/hid-multitouch.c +3 −10 Original line number Diff line number Diff line Loading @@ -1594,7 +1594,6 @@ static void mt_post_parse(struct mt_device *td, struct mt_application *app) static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi) { struct mt_device *td = hid_get_drvdata(hdev); char *name; const char *suffix = NULL; struct mt_report_data *rdata; struct mt_application *mt_application = NULL; Loading Loading @@ -1645,15 +1644,9 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi) break; } if (suffix) { name = devm_kzalloc(&hi->input->dev, strlen(hdev->name) + strlen(suffix) + 2, GFP_KERNEL); if (name) { sprintf(name, "%s %s", hdev->name, suffix); hi->input->name = name; } } if (suffix) hi->input->name = devm_kasprintf(&hdev->dev, GFP_KERNEL, "%s %s", hdev->name, suffix); return 0; } Loading
drivers/hid/hid-nvidia-shield.c +1 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ static struct input_dev *shield_allocate_input_dev(struct hid_device *hdev, idev->id.product = hdev->product; idev->id.version = hdev->version; idev->uniq = hdev->uniq; idev->name = devm_kasprintf(&idev->dev, GFP_KERNEL, "%s %s", hdev->name, idev->name = devm_kasprintf(&hdev->dev, GFP_KERNEL, "%s %s", hdev->name, name_suffix); if (!idev->name) goto err_name; Loading
drivers/hid/hid-uclogic-core.c +3 −10 Original line number Diff line number Diff line Loading @@ -85,10 +85,8 @@ static int uclogic_input_configured(struct hid_device *hdev, { struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); struct uclogic_params *params = &drvdata->params; char *name; const char *suffix = NULL; struct hid_field *field; size_t len; size_t i; const struct uclogic_params_frame *frame; Loading Loading @@ -146,14 +144,9 @@ static int uclogic_input_configured(struct hid_device *hdev, } } if (suffix) { len = strlen(hdev->name) + 2 + strlen(suffix); name = devm_kzalloc(&hi->input->dev, len, GFP_KERNEL); if (name) { snprintf(name, len, "%s %s", hdev->name, suffix); hi->input->name = name; } } if (suffix) hi->input->name = devm_kasprintf(&hdev->dev, GFP_KERNEL, "%s %s", hdev->name, suffix); return 0; } Loading