From patchwork Thu Dec 21 23:18:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 182484 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp744665dyi; Thu, 21 Dec 2023 15:25:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIc5j63b46x8MIvcC45n3ij8dSjkQCPLVaeVZVw5DhmzdmhkViQdjnRxQIZQmxg1nZSvCl X-Received: by 2002:a17:903:22d0:b0:1d0:6ffd:e2d8 with SMTP id y16-20020a17090322d000b001d06ffde2d8mr503787plg.114.1703201113352; Thu, 21 Dec 2023 15:25:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703201113; cv=none; d=google.com; s=arc-20160816; b=zxNZDNmnjO3LOCUcQy3vwA2WgUyreV9KrQr+sww6IqTIlhu9t6Rw+dAtTky3x3Ed05 xNVh7pJDi3TOvPEBKb1lZ9p26+rKnMHs1lyzN9dbCbnEgjmuarJ8jDa+IE+3YRooxCt7 9730jKkq+ouQpxxNNmS3n2EMvvkgYfVjsvs1ixz0DZAkgtGAHH1xYAuVfzkwEaKQKgLc 1ciIYruyBsKuigMurs6oAc2tKfgU6/QUXfPd75HLNTiXN30UdyrLcAsxVR9hEl4JpaKN pmBdfu87QCpgSAfIrOsLlFldJ5pCusMz9Hj2YBq7GQCw6Cryfl5ecaAm0xwRzSwdhSTb Kr5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:cc:to:from:dkim-signature; bh=SlEM2rILNAZB6YQdLheCmIbuxLDabci7Ac0z9IGXTaQ=; fh=a+7AZTsUdGs2+AWrQbNEXqvESCr9vB6fImIjtsp44Zg=; b=D40E1GWCfJ7H8UQ2vz+g6v5chehuxZdWCdtIFFlEu/dsPGS8XGyE0zely/+XROXcuy e0bbdAQ0K4QG/VlKPn5aBvbuxlVIIZM2UOMHJxDHKwWEHyHm6ZbMAb0Klo52P8w8kgVU Ls3hHiqd7CBie/+lwJFxm20E5VToNCgzoCCiXvyZss23BM5atvFPe5j2QRYIoT5GYUU/ jNWl4sRsiPdx+DG5VtHGez0vocL+9z2MdywUFOTgSrQCntaJVVZru2BwBSKpW7m8h9t5 Xh2Dphr9KWfP72skqFT+f+TxE/HGOcbI2DOjKPLCQ/rFpUuScmw77tixFd8cfLtCVgEj s7rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=klF4EmqZ; spf=pass (google.com: domain of linux-kernel+bounces-9171-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9171-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h7-20020a170902ac8700b001d09ffdfe1fsi2197371plr.171.2023.12.21.15.25.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 15:25:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9171-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=klF4EmqZ; spf=pass (google.com: domain of linux-kernel+bounces-9171-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9171-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D75FEB267D6 for ; Thu, 21 Dec 2023 23:22:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24ED87E57D; Thu, 21 Dec 2023 23:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b="klF4EmqZ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) (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 8B10E7A20A; Thu, 21 Dec 2023 23:18:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hugovil.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Cc:To :From:subject:date:message-id:reply-to; bh=SlEM2rILNAZB6YQdLheCmIbuxLDabci7Ac0z9IGXTaQ=; b=klF4EmqZJ/0h/Jllt+P6EP6jBp V9teL5n0n6y3tkt+wq97vD5KbOH7dKFP0LGISHmt+NZDR4wCQh7ubp7MmvKVVD4z4fia0lteo8NjS LZ0YMfIX7nYJIArX/a07L2BEytgrkrIUpDN5pXVbaoz9wXOFQHHRCCJpw3YSOEEjV8PE=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:52484 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1rGSJO-00025W-S0; Thu, 21 Dec 2023 18:18:43 -0500 From: Hugo Villeneuve To: gregkh@linuxfoundation.org, jirislaby@kernel.org, kubakici@wp.pl, indrakanti_ram@hotmail.com, phil@raspberrypi.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, hugo@hugovil.com, Hugo Villeneuve , Andy Shevchenko Date: Thu, 21 Dec 2023 18:18:16 -0500 Message-Id: <20231221231823.2327894-10-hugo@hugovil.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231221231823.2327894-1-hugo@hugovil.com> References: <20231221231823.2327894-1-hugo@hugovil.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -0.0 T_SCC_BODY_TEXT_LINE No description available. Subject: [PATCH v2 09/16] serial: sc16is7xx: add driver name to struct uart_driver X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785935810537441250 X-GMAIL-MSGID: 1785935810537441250 From: Hugo Villeneuve Make sure that the driver name is displayed instead of "unknown" when displaying the driver infos: Before: grep ttySC /proc/tty/drivers unknown /dev/ttySC 243 0-7 serial After: grep ttySC /proc/tty/drivers sc16is7xx /dev/ttySC 243 0-7 serial Reviewed-by: Andy Shevchenko Signed-off-by: Hugo Villeneuve --- drivers/tty/serial/sc16is7xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index e7f3184a70a1..b73fac209f1e 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -351,6 +351,7 @@ static DECLARE_BITMAP(sc16is7xx_lines, SC16IS7XX_MAX_DEVS); static struct uart_driver sc16is7xx_uart = { .owner = THIS_MODULE, + .driver_name = SC16IS7XX_NAME, .dev_name = "ttySC", .nr = SC16IS7XX_MAX_DEVS, };