From nobody Mon Dec 1 21:31:22 2025 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 835421FF1C4 for ; Mon, 1 Dec 2025 08:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764579235; cv=none; b=js0a2JvB2d1fmSITOivtl+aNV+OKJdwF5o7VFU+0NIqf5jKC1Y0M8XN1hTZjNfCI00A6TMHkSuPSySwip60tFbByvQ48COSuUkcBde9IugJhJMnQsBDm0JswXITCZs9nWVTVnCHfBw7InCt/F49uvYjTtpAGcn+KLJnIIaPF73I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764579235; c=relaxed/simple; bh=O7k9SHwmWRzOFSHGKgFTVaGi2iepILTkIiTF4Tj1OL4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=RrcNmREh0d8J2EznHtoXdxkNmIFmRtWJdm8qMVwv1chTrJb4E/nNWyg6B0DDkVSao+sbtWzF+W+cAVubDa8Wg0dsWDiDh24h45mCVOzlqK/R3UPTA0V3Q79vHgEDbypIDo1Nc7y5z8/ExBvO8ZefUR/cFmgzStAfkHpz3J5ikEk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=dSoZRCD+; arc=none smtp.client-ip=95.215.58.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="dSoZRCD+" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1764579220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=WncnBlJ4IbVOGh0bq32FxJHFQjNQVBSPsYGwwkkY/kU=; b=dSoZRCD+ePVfdOPXjVFHOpqyiy3DSV8f9sxL4pAYvMMwhd68MygIWyzqryF4i9tKALJHLZ stQuLGWibd76yEVTG19XatM0iLUslGbwKx+99PyaSD1LqK+YbcM0vLm6JNT+52gvTr3E4N 9+WkKDAfIR/u8iZSJNAIy8Dj6yKkJzg= From: Yi Cong To: gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, yicong@kylinos.cn Subject: [PATCH] usb: linux/usb.h: Correct the description of the usb_device_driver member Date: Mon, 1 Dec 2025 16:53:09 +0800 Message-Id: <20251201085309.103379-1-cong.yi@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: Yi Cong In the current kernel USB device driver code, only the name field is required to be provided; all other fields are optional. Use the command grep -rnw "struct usb_device_driver" to inspect how specific drivers are declared. Correct this part of the description. Signed-off-by: Yi Cong Acked-by: Alan Stern --- include/linux/usb.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/usb.h b/include/linux/usb.h index e85105939af8e..fbfcc70b07fbe 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -1295,8 +1295,7 @@ struct usb_driver { * resume and suspend functions will be called in addition to the driver's * own, so this part of the setup does not need to be replicated. * - * USB drivers must provide all the fields listed above except driver, - * match, and id_table. + * USB device drivers must provide a name, other driver fields are optiona= l. */ struct usb_device_driver { const char *name; --=20 2.25.1