From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752987AbbKZIwk (ORCPT ); Thu, 26 Nov 2015 03:52:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:45966 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752445AbbKZIwi (ORCPT ); Thu, 26 Nov 2015 03:52:38 -0500 Date: Thu, 26 Nov 2015 09:52:35 +0100 From: Jean Delvare To: LKML Subject: [PATCH] firmware: dmi_scan: Fix dmi_find_device description Message-ID: <20151126095235.64f3d7ff@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The description of dmi_find_device was apparently copied from a similar function in a different subsystem, but the parameter names were not adjusted as needed. Signed-off-by: Jean Delvare Cc: Andrey Panin --- drivers/firmware/dmi_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-4.3.orig/drivers/firmware/dmi_scan.c 2015-11-26 09:41:45.032767005 +0100 +++ linux-4.3/drivers/firmware/dmi_scan.c 2015-11-26 09:41:54.205975102 +0100 @@ -871,7 +871,7 @@ EXPORT_SYMBOL(dmi_name_in_vendors); * @from: previous device found in search, or %NULL for new search. * * Iterates through the list of known onboard devices. If a device is - * found with a matching @vendor and @device, a pointer to its device + * found with a matching @type and @name, a pointer to its device * structure is returned. Otherwise, %NULL is returned. * A new search is initiated by passing %NULL as the @from argument. * If @from is not %NULL, searches continue from next device. -- Jean Delvare SUSE L3 Support