Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3874212pxk; Tue, 22 Sep 2020 05:05:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDxJ2tI0yBpd3YBbFOIrf1FWcZK/4fJEC6ZJTG2hy3crq6C3x9WlMiUXgOh4T9tACsPjkI X-Received: by 2002:aa7:c985:: with SMTP id c5mr3603040edt.355.1600776344284; Tue, 22 Sep 2020 05:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600776344; cv=none; d=google.com; s=arc-20160816; b=qyLmWf4czGlbvG571gaJK5d9FgS13dY8ABOi7e6xUwMZ1M0oGNUs9ISlslYAvuvWVY Ldx7D4b92mtLZUh4dEtOwZnkR0spwHKbhSTw9QxeZ2jRqmRz3IYEEoz2+h5/cYQEzTiP uJADKwQAJMMJnI9E+/pS248G4vz+RdDr5BnUPyJA4aYhtolQSYcxi9ITE9A4FzUNZUE2 +mNc4k79ADm6fVnj66aVjYBrUUtZQN23WswzxnREnhHSLmOLk4rBgAYNIml0YhCJTt8n 2omXVzOUeW61nwfEX7BqARc221IU87qo93bWQOoU2+xZZEFv0iK0qwn3hiADmJjHiBTI HpuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=uC7D4hFJFZzTjjMUHTQivpiu27ssZewHXCB0HEf1FtI=; b=Nu1cwpN/Kn2j/AylnKsFRneKhldRWCgvQ7rySaos0dhtT9nwHbzvqcEUdoLIJtjVLa Eu4cOqAU8uQGT1TJF2ej/ZGtNdQ53EoEVyGgiZr+K4KtBaG5W+ZmOkOXdI1dD7daYs8g QHpba/s+6EIyr8+SCjfCdrsVM/V2zCamGq3OQdQQzd6Dys1yF7M+Fu6Hv4pxFGSfqVe1 ik5iHDiS7XqunN0+EvB9y1X/V/mSc/17YY/pLw6ug6NQqy2/WyxMeVdMfyZ5pwD3Y/eo Ea5NcLYuN0guoa9ADjEw3szWEVLnpVhpmeojkFvZeDRW6ot2dmPjezpBd7u2qNIannr5 iobA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si10197614edt.161.2020.09.22.05.05.19; Tue, 22 Sep 2020 05:05:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726571AbgIVMBm (ORCPT + 99 others); Tue, 22 Sep 2020 08:01:42 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14211 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726543AbgIVMBl (ORCPT ); Tue, 22 Sep 2020 08:01:41 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B35FCAF25208706C1759; Tue, 22 Sep 2020 20:01:39 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Tue, 22 Sep 2020 20:01:33 +0800 From: Xiaofei Tan To: , , , CC: , Xiaofei Tan Subject: [PATCH] HID: core: fix some doc warnings in hid-core.c Date: Tue, 22 Sep 2020 20:00:12 +0800 Message-ID: <1600776012-7663-1-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix following warnings caused by mismatch bewteen function parameters and comments. drivers/hid/hid-core.c:931: warning: Function parameter or member 'hid' not described in 'hid_parse_report' drivers/hid/hid-core.c:931: warning: Excess function parameter 'device' description in 'hid_parse_report' drivers/hid/hid-core.c:961: warning: Function parameter or member 'hid' not described in 'hid_validate_values' drivers/hid/hid-core.c:961: warning: Excess function parameter 'device' description in 'hid_validate_values' drivers/hid/hid-core.c:1452: warning: Function parameter or member 'report' not described in 'hid_match_report' drivers/hid/hid-core.c:1452: warning: Excess function parameter 'report_type' description in 'hid_match_report' drivers/hid/hid-core.c:2132: warning: Function parameter or member 'drv' not described in 'new_id_store' drivers/hid/hid-core.c:2132: warning: Excess function parameter 'driver' description in 'new_id_store' Signed-off-by: Xiaofei Tan --- drivers/hid/hid-core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index d2ecc9c..727d042 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -920,7 +920,7 @@ static int hid_scan_report(struct hid_device *hid) /** * hid_parse_report - parse device report * - * @device: hid device + * @hid: hid device * @start: report start * @size: report size * @@ -945,7 +945,7 @@ static const char * const hid_report_names[] = { /** * hid_validate_values - validate existing device report's value indexes * - * @device: hid device + * @hid: hid device * @type: which report type to examine * @id: which report ID to examine (0 for first) * @field_index: which report field to examine @@ -1444,7 +1444,7 @@ static int search(__s32 *array, __s32 value, unsigned n) * hid_match_report - check if driver's raw_event should be called * * @hid: hid device - * @report_type: type to match against + * @report: hid report to match against * * compare hid->driver->report_table->report_type to report->type */ @@ -2120,7 +2120,7 @@ struct hid_dynid { /** * store_new_id - add a new HID device ID to this driver and re-probe devices - * @driver: target device driver + * @drv: target device driver * @buf: buffer for scanning device ID data * @count: input size * -- 2.8.1