From patchwork Tue Mar 8 08:09:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12773235 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 E9957C433F5 for ; Tue, 8 Mar 2022 08:12:32 +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=/CDD48irbz3hBpAq07Hivbrvw+0SX6Y0Wu6uxYc5MdQ=; b=VfM0v0ssIprIPL GLxGhsZ708rFlwILIwKOrmEK1gjJI0Sme2sK4Ttw6WJL3mKGNEHM9NX8SugVdgdTouYRMwXa/xwsk +w/2VC+1pVfFMixLF9dp4As0IEXcuDifPswOLgEFrg707T0C0Yxf5k7WCQtXFoF6GzdlP/PItLDG4 49PgdB3paK+eOgwhyDJIgKWlYB1Ot/HeAhHb3K9w07A1CazEbJ3zbRtmPVw5EIsK2PXQ/8702SIsF h6xUICqvxNj0dMnufuOkgrzEPeuOhCDU2jNpP4eO6iQvi7WfgxYzA2SavNcIieP149XV4K+mj9k43 QdPVpGOzsmzAngIWv42A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRUvp-003AYh-8U; Tue, 08 Mar 2022 08:10:57 +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 1nRUuS-0039y9-AK for linux-arm-kernel@lists.infradead.org; Tue, 08 Mar 2022 08:09:33 +0000 Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (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 1BD833F7E5 for ; Tue, 8 Mar 2022 08:09:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646726971; bh=Dr4tgo26oKDD7/cFmU+MgZtFQEJoCk73ZvgNX0zaNnk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MW4cS/a3rZ6mGwrKSnHQ9n+eNyJl1EoZSCGCxN/P3foXVGy6W5iqZ3gM7TiTKKrvt W6iXAeVZLcKVfrvMEsePZqimQGUDPrQzjoABVIGYLcrLCxxbhkmM1uohT8hZKEnwaj 9tY6NKr2GJaXu5yRF5uybkXDZztssgVl+rMCNZjK2Ck2C9xoGlOps2mgzjCOfTqjMG CmOlZatxvEnhmYqS9aV3L90kblYY5Oc2PozdxcCk2Agi/wiU82Ss3gYPRd7ERuNEh0 WzxJlLpmdmGL/KFqduwBKDvro+kbRiuY59jfNso5dDmG57E4KsU5zV8unPydIZ+mdM +9/wWiQBGFBrw== Received: by mail-ej1-f70.google.com with SMTP id hr26-20020a1709073f9a00b006d6d1ee8cf8so8176254ejc.19 for ; Tue, 08 Mar 2022 00:09:31 -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=Dr4tgo26oKDD7/cFmU+MgZtFQEJoCk73ZvgNX0zaNnk=; b=xiOn1jGyjfhBbH54iKkatNc0JuWx6/KrApRyOaj68HueGv0BhwO+B0G2hppcXQvjcB nUIrt3p/GxlbjHuTMg2RMKXU4qs8BkptQQGYC4LuIx/jlzoNt77sgET9Ej+Wfq2tSiEN wuOnMX2d8JQJpCsJvomEfjuSSkVpRM5LRJcZzEPPaXMbgId02SmtUxIbfjhE2AYtqT18 JNMX1Grxi/gLSPKznkPyimDFH9JKm6uDXVColYrULB9cHwYmjKrfHfNk2aXlswwloWAb gV5R95ZOOxWGcTKPiJ+ADOfstvoeE+VfyLXBxynL6MKhIT99U2EUgTeblFWmrDDFnsh/ lxbg== X-Gm-Message-State: AOAM531x51uWvaf7LNcws+9u13faFaclqg1ivvDaWhzkxwW3SkPs4Qnc tEPqoh9QHNlPf1sJVLVdJCOIB64BlUOmFd1mOfRNVitcuwwc5eWpZParOyQL5O9LJd2dThRG2vF vIjhCUD4O1kCNPIxrSUOoZRPG7kRB8RQhom8PxT0dIstMzeVDskA4 X-Received: by 2002:a17:906:3e90:b0:6b6:829b:577c with SMTP id a16-20020a1709063e9000b006b6829b577cmr12689312ejj.711.1646726970627; Tue, 08 Mar 2022 00:09:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvyuR3mb0kzIzmDG7xL2Oq1O5GTZ5RmEqTaJMl1TSRoKLAqTby19CSrJRxPUdjCfrfwqyzaw== X-Received: by 2002:a17:906:3e90:b0:6b6:829b:577c with SMTP id a16-20020a1709063e9000b006b6829b577cmr12689291ejj.711.1646726970318; Tue, 08 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 t4-20020a056402524400b00415b90801edsm7385697edd.57.2022.03.08.00.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 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 Cc: Andy Shevchenko Subject: [PATCH v3 6/8] tty: serial: samsung: constify s3c24xx_serial_drv_data members Date: Tue, 8 Mar 2022 09:09:17 +0100 Message-Id: <20220308080919.152715-7-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_000932_522035_BABDB718 X-CRM114-Status: GOOD ( 14.24 ) 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 driver data (struct s3c24xx_serial_drv_data) is never modified, so also its members can be made const. Except code style this has no impact because the structure itself is always a const. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Jiri Slaby Reviewed-by: Alim Akhtar Tested-by: Alim Akhtar --- drivers/tty/serial/samsung_tty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 7025306f76b7..b9783d8fb440 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -85,9 +85,9 @@ struct s3c24xx_uart_info { }; struct s3c24xx_serial_drv_data { - struct s3c24xx_uart_info info; - struct s3c2410_uartcfg def_cfg; - unsigned int fifosize[CONFIG_SERIAL_SAMSUNG_UARTS]; + const struct s3c24xx_uart_info info; + const struct s3c2410_uartcfg def_cfg; + const unsigned int fifosize[CONFIG_SERIAL_SAMSUNG_UARTS]; }; struct s3c24xx_uart_dma {