From patchwork Mon Mar 7 08:09:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12771341 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0737C433EF for ; Mon, 7 Mar 2022 08:11:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5AOeV89eXA43AcGIPDo8ZDHpdpybxYTPBM4hoGnMji4=; b=Jm5+UHJVeAqM7T CU47SZn9NzM/Q4TpHLC2aPEsfRdkXzV/tXX/187VmAXzmVfDnTV7mIA+VSX0lgXnjiRrR0t5ObGVZ tStYHZCbgmMcsFBDe0OTTz5PyFigVcUYNOJ4+kxiCK/SoOWO0TiEDzioX33uAIh8D0idvJpv1pQLF lljJdVfq3M2kdPopTSPB3CYCg3WVNrv6F9tW56l0gcOG7xzJerz7w4/waveggg5FddD/KQOuJogns OvGP0iil11DaVCRl+iRmRhdtEHkXaSnMwgvGj4MQ8eURcwXAWEGHMAdeuc26Dxn/gpkB8lxw+Fqgg 3IYuMzJByCAyeO6+Zl1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nR8RS-00GOmG-76; Mon, 07 Mar 2022 08:10:06 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nR8Qx-00GOWk-2G for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 08:09:37 +0000 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 5B3073F60B for ; Mon, 7 Mar 2022 08:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646640573; bh=4HAGUFdmLrEMxU9EFzkJe4Ux3HcmnFK/yDcsBQCmOjM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=e1AUiT7qakrbezj64vxttoVNwYMCdWU3ly9Nd2DI5BPjvLHZrgZtmASbVy60aywZP 3FGc6mbv1esEpSPaoW/gAr3418SntY/mvnmbUh3/kQGnSk7mSM8m/mUtWL5DxE9XUO SrsdPBOsGW4knPH3aA831USgCfjRIg7/txa7ZPs+iDCMH1ZgA+fJ/0gMllOgyMwfBe CBQUKgdByTZQwMkOH1UekB6rUt7hsGrcydUaNQ7CgqHE2Q9cINYtbL+AO8OYKdakgO gRBT5mvhp71oNEP1ZQPJikEB9rOLJUTtQnCMHW/8mpwy2ZkJyC46HDASE+AbxCPLg8 rriHFvGM2ZM/g== Received: by mail-ed1-f72.google.com with SMTP id l24-20020a056402231800b00410f19a3103so8158425eda.5 for ; Mon, 07 Mar 2022 00:09:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4HAGUFdmLrEMxU9EFzkJe4Ux3HcmnFK/yDcsBQCmOjM=; b=RWNn8AfKhHdNNeLGZquk0Cw37XeQYk3v0znUeSDIQ4rQBjMcaK//GrAqHgxG2EBsZ5 hBgO1duNTMTDV4CwpvgSPgX3SYosP2U7AMQSJiJ0V48u5Yj4JmTJq9tq08IaPEvhVdmy /O2WlyQ2jH/jQSmZKkWhr9LQoixapPCqJvu3Tg31EzWgHFIMIf2Zi08qhcSxEoydcjuR /ms6oBnVq69N0h6QdQJB4sdPUWijPnR+duX8cpzGHV1IjUtGZ/l4B/ESBJ6qThkp1TLO Dui31/Yi4Y/Wjf1Mnq/FchNVBvvczxLlwS37AusT7+lwxhpPdUMiwmOEDutl0UFylQok 1PqQ== X-Gm-Message-State: AOAM533COsn6tguDHCogORXDeyo7Lh0Wdp1OcJrYq/U8pEx1clM/wDiS p6pCqwbcKAId0aOqIxCwgt1d+dSSCo0N9aBpCluA6oYYYnlKGOByV5dgd2pY+jWqTr+9yuBN7c4 XgiRQSsRrxZIb28FiippREkTcNle0lQl7uno5tj/6arOoRKd1oy3p X-Received: by 2002:a05:6402:18:b0:410:86cd:9dce with SMTP id d24-20020a056402001800b0041086cd9dcemr9810254edu.70.1646640570856; Mon, 07 Mar 2022 00:09:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgU+c7KFSylijaRWQXv0cNRe/wpPkgSFLwallIr6sdnzfiO44fulIE699j1F9ifcnE8L0KOA== X-Received: by 2002:a05:6402:18:b0:410:86cd:9dce with SMTP id d24-20020a056402001800b0041086cd9dcemr9810243edu.70.1646640570665; Mon, 07 Mar 2022 00:09:30 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-174-239.adslplus.ch. [188.155.174.239]) by smtp.gmail.com with ESMTPSA id fq14-20020a1709069d8e00b006da650af5a9sm4472594ejc.3.2022.03.07.00.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 00:09:29 -0800 (PST) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Alim Akhtar , Greg Kroah-Hartman , Jiri Slaby , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/7] tty: serial: samsung: constify UART name Date: Mon, 7 Mar 2022 09:09:22 +0100 Message-Id: <20220307080925.54131-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220307080810.53847-1-krzysztof.kozlowski@canonical.com> References: <20220307080810.53847-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_000935_276571_E7385C99 X-CRM114-Status: GOOD ( 13.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The UART name from driver data holds only string literals. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Jiri Slaby --- drivers/tty/serial/samsung_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index c4b13f2d6e26..7025306f76b7 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -63,7 +63,7 @@ enum s3c24xx_port_type { }; struct s3c24xx_uart_info { - char *name; + const char *name; enum s3c24xx_port_type type; unsigned int port_type; unsigned int fifosize;