From nobody Fri Dec 19 07:30:13 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3C29C54FB9 for ; Tue, 21 Nov 2023 09:23:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232419AbjKUJXV (ORCPT ); Tue, 21 Nov 2023 04:23:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232066AbjKUJXM (ORCPT ); Tue, 21 Nov 2023 04:23:12 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0BB410E for ; Tue, 21 Nov 2023 01:23:08 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71B60C433C7; Tue, 21 Nov 2023 09:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700558588; bh=+1z5LOwL5/wByoEwmaM4FneMWMS5WLPxn2QmVIRN2AY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bCwBVh4J1NFGdlP6wl50zfJ4zCDZKWSbOGRsniuiRrOdOSHf+WWf1affyoNnvUWe4 QgZg8OnVuY8re+gqb2uisjjqIp2nWJvggiAtLm4BwhxGhrxTgi3DqLnpCo2NOR0+5N LPUvTWUpWZa0dHh1BwIFOnXbI7Dq6RBomNXPsZ01OGqXEBpJepulMZ+Pwzz0J+Kaz9 DvErdNkiHwMxoex9xSshXdJTwommXeYo9pTghjyMDNlhUnXviHlXhkPtbc65nd+Zqt /NY5l9Y8M+SylNq3jF4i0RVW6uiQle2nltPBqAil7ksQQt96ltHknhDYXP2Mw5b233 X48R7mABHJ4RA== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" Subject: [PATCH 03/17] tty: fix tty_operations types in documentation Date: Tue, 21 Nov 2023 10:22:44 +0100 Message-ID: <20231121092258.9334-4-jirislaby@kernel.org> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231121092258.9334-1-jirislaby@kernel.org> References: <20231121092258.9334-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Commits 95713967ba52 ("tty: make tty_operations::write()'s count size_t") and dcaafbe6ee3b ("tty: propagate u8 data to tty_operations::put_char()") changed types of characters to u8, but omitted to fix the documentation. Fix the latter now. Signed-off-by: Jiri Slaby (SUSE) --- include/linux/tty_driver.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index 18beff0cec1a..f428c1b784a2 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h @@ -72,8 +72,7 @@ struct serial_struct; * is closed for the last time freeing up the resources. This is * actually the second part of shutdown for routines that might sleep. * - * @write: ``ssize_t ()(struct tty_struct *tty, const unsigned char *buf, - * size_t count)`` + * @write: ``ssize_t ()(struct tty_struct *tty, const u8 *buf, size_t coun= t)`` * * This routine is called by the kernel to write a series (@count) of * characters (@buf) to the @tty device. The characters may come from @@ -85,7 +84,7 @@ struct serial_struct; * * Optional: Required for writable devices. May not sleep. * - * @put_char: ``int ()(struct tty_struct *tty, unsigned char ch)`` + * @put_char: ``int ()(struct tty_struct *tty, u8 ch)`` * * This routine is called by the kernel to write a single character @ch to * the @tty device. If the kernel uses this routine, it must call the --=20 2.42.1