From patchwork Tue Mar 8 08:09:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12773234 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 999B0C433EF for ; Tue, 8 Mar 2022 08:11:55 +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:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8BxdPVaIw8/qoaucFOX28gCppnfyiO6FjKMmqAFiCo0=; b=i0yz0IojlH/0s5 BQWQjtu+C1kdLBCZhJmLLPTlbrQ5KCzaABIWKhauBm0R0J1dXmCRViS4bsRZCC3F9+HpjWqQlodS7 D6G3uJKvNgP+lUgruW9He76l+mJ8j0INtn0fOOZhYh4ZQRHJjsU2PCcXhvWoqcHVBkz8XUkfWNrIu 8fWvYsiKLWbJP0tglNdMjpYo0Z+PZGGNof/hefouqSje4fEqByqr9s2wO1207J98/ZfGOKQ5iONre iS0TAiqIaQPOrJ+HMKuTsQNUVWiSYXMJqBw3ySkdxpTLcbxCaQ9CCgP4usorxid2Q8+lkN77pw2Iz epNMJlC4m7ZxXlwLjS5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRUvS-003AMa-1v; Tue, 08 Mar 2022 08:10:34 +0000 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRUuQ-0039x7-GC for linux-arm-kernel@lists.infradead.org; Tue, 08 Mar 2022 08:09:31 +0000 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (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-1.canonical.com (Postfix) with ESMTPS id 4D7BA3F7DF for ; Tue, 8 Mar 2022 08:09:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646726969; bh=29Pf3ZsU5JJVOHBIO1WRfRouMVWJymQOmYuJyfmZYy4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LkfbNmA9Vjt18uCAYkD/pVLrecoVDZlQhW5ah475s/GQnogj6tnEjYQ6nHpDib1X3 R3473N8FT7FF25HiCF7EMiaMW6GYb2rCOMD99DeNX7sxtMEEGck8lzy7sT5Q3vpxBI XpwVT0ILex4z0miDeiAXMaognDhTvvCh6Za3ur3q8nAHkbimbx6oDPLOrHBm/uPr/A FAlsUBQA2n30Pq5et4NQzOgBQh3/2PWjbNK7MkxTLiLz3HpdqfNd4kkvD7NbRB7dl9 IbuMAczN6X4DYZi8g9FL42hBwyVVENMDDSSZby3uCMcI2qOufJ7M7nnCTPFuV9pVTh irARfJ5mM/3+Q== Received: by mail-ed1-f71.google.com with SMTP id n11-20020a50cc4b000000b00415e939bf9eso7969672edi.22 for ; Tue, 08 Mar 2022 00:09:29 -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:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=29Pf3ZsU5JJVOHBIO1WRfRouMVWJymQOmYuJyfmZYy4=; b=6iDyREzbiCEPA5GUzacKEx6ZzJC2MBvKf2vpUM7xM6R8T7nCiVUCEyzaWpQHtRUPPJ 85T42uEuWA+rGAOp5WBWq2ona53pfCKnKvvand3pdj4JPtX0ZNKXP02R2OTZPcVpzBkZ JSYH/X/7alEogLdKcd9ZWLoRitRneF9feyA+CBQMfzFqmF4bEGqWdpfVFhoHrOMQ2q0z twN9hCqlhzAHVlCovey5iBStnHtyZ67I4dI8RnJxt0pvnBGiCpqmWU+3sbAGUU/CTOfr Sqr60rcgoosSvQcWFEiq+raljJXdhhrrCzwxqUxdqdGipS2fVnACn9J/sf1U70ESVpFz XS5w== X-Gm-Message-State: AOAM530Cqi9ltaiTTHLcXkZUgKjLk95u1b/UreVmT/kBFBRQ/L1UruHb h5FdLRwmBUj1U2wzNEPEBFPvQHvXFN83L7FQLwJCQHyPz7UajzeLCFiMPNiqKq3yPGJr94Pfjqn YdfSDeq705Nj2llxRjgkp3LFHLjxdIsNn1JKgZBD21YYnrEdTEwD7 X-Received: by 2002:a17:906:9bd7:b0:6d6:e920:8d04 with SMTP id de23-20020a1709069bd700b006d6e9208d04mr12389912ejc.547.1646726969063; Tue, 08 Mar 2022 00:09:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCDpyzVeafJO+tBKmLNUmXCUwu/pvO8ES0IOzwYdYS55Y3KidkwCIqb81SC/LBMvb5FhouCg== X-Received: by 2002:a17:906:9bd7:b0:6d6:e920:8d04 with SMTP id de23-20020a1709069bd700b006d6e9208d04mr12389895ejc.547.1646726968858; Tue, 08 Mar 2022 00:09:28 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-174-239.adslplus.ch. [188.155.174.239]) by smtp.gmail.com with ESMTPSA id t4-20020a056402524400b00415b90801edsm7385697edd.57.2022.03.08.00.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 00:09:28 -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 Cc: Andy Shevchenko Subject: [PATCH v3 5/8] tty: serial: samsung: constify UART name Date: Tue, 8 Mar 2022 09:09:16 +0100 Message-Id: <20220308080919.152715-6-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220308080919.152715-1-krzysztof.kozlowski@canonical.com> References: <20220308080919.152715-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-20220308_000930_692799_39086109 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 Reviewed-by: Alim Akhtar Tested-by: Alim Akhtar --- 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;