Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp252236rdf; Tue, 21 Nov 2023 01:24:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaPj585aRde8mND2y7sK2MgqGOf6Ozw4kKy0uHRKhAHOm6NmK/gOz3nEKjUzNXweN/YXJW X-Received: by 2002:aca:1815:0:b0:3ab:9afd:8efd with SMTP id h21-20020aca1815000000b003ab9afd8efdmr9174441oih.40.1700558659366; Tue, 21 Nov 2023 01:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700558659; cv=none; d=google.com; s=arc-20160816; b=jrFGm+aAEqrSZflRJku/SXs0/asJIAIVra17If9UJNMzEtG/FuYFBvivOed8MxOeEy qvLPFNq1T5Djxv5wgRWc5A5kwK48hYBetysu2FYdCcnvhLdSQuKMYreLL0aY9qBlhr0H rvpNkqOCRFN3S1g+kOOb+ktxtbXKRlDeKXT3EkNc7oWJi9ig19PU1dsRnAe/eXZOSi9d 7zKwK8sLE1eSKAGbgxZG7QbFTRkVh/2APJQKALPq+2KxiQiQHxDnWwsf1C4n+xc7AeVf OEQmFtkjPwNyviG/plZtYrzp22cPTk6KRHQB5f7/e+MejbGnAPmN/AVb9yU2p2Qu3RwU Qd5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QNpw7Ua/xuM7CyXk+RbI4OuSJIBXmvMYZvGs+yxkacU=; fh=1YNwm5KBWetjB3qGkhgLqh/dZnCTsWuqRk83JW6hjgE=; b=CuAsijOgNSevWEejYqC3iPkaddh3ih/txisbwRFjvbXs1R0rEPCOtMjL7IYmiNQGCb vi8cb5zZoyALhBstC5hhowTE3fIVcI8g5/35Zc5/YiBjDaaBTyZ2sPGfGmESFyhhc+HP VjHCTIXxnSrJ4AWQOUrozJXV+8CNElesuk63/gFSGUmSdm75w8eDtNx1x2hRz/moT6AQ odHRYLGVfts3uRhdSyAGL3r1zKsM3VV+iuJJKke000T7G2eTKbq09uxSnMTZn84QcR0X fwZyemsj8QEzS3xrK4CHZ4/EY5N85/TexFXPHJNzJEEBdzg+CkJg26K6LrCFMXOEo7uC fprw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bCwBVh4J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m66-20020a625845000000b006cb4b976a21si7195533pfb.130.2023.11.21.01.24.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 01:24:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bCwBVh4J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C8FCF804C55B; Tue, 21 Nov 2023 01:23:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232572AbjKUJXU (ORCPT + 99 others); Tue, 21 Nov 2023 04:23:20 -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: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 01:23:59 -0800 (PST) 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 count)`` * * 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 -- 2.42.1