From patchwork Mon Mar 7 08:09:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12771342 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 C5D5DC433F5 for ; Mon, 7 Mar 2022 08:11:44 +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=OYTXEerhoXn4c8J4iyEP1eSO6XkKd5NTqPm6DMx4MoE=; b=ih702ZhIOAmHkN u7eRkJZfKTGDL42AmVBskOkkpyT9y7Kjpn1MzMa+QSdGr7HzBqbN2gM2bSpwmOmJf+wIMCuXw5HK7 0GpgCL4jfbVc38MIZkEaMIc8RtW4Wm3nneeSrcY+cDTRpQPfLQqUAEnzLn7n7a4vdHmy/HBMo3lvR /7G7XrEcR+qJcWjzc/tq0PbwuUacIpePFsRTUrF62m+cq5e5pp9w0VoGpmYbGsMaY0Z/ZeYdtjmUo /SI+gNXq0F9DW1QubPMim7AcV97lb/W9Q1HBDo7hPQLZUpfPcp2eOWO5GQOccLJE8AWIl+jAXLqyP UG9TLuKtNKBJqSXHo4WA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nR8Rg-00GOsU-PX; Mon, 07 Mar 2022 08:10:20 +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-00GOWr-2K for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 08:09:38 +0000 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (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 D1CC83F625 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=kV9bWky3aqex0YOWejd45KPzqFNsCZcNjbYJT0yjx5k=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RQphjHQJmXBAx8OeYX3OY6E4zyOjEy4PMuiTtFe9MtP6VCgrOaAkK0apjKxRO7F7m K7BmT9MdmXicq9yhv0zszOqSmESNTkEaUonfd3E9yTFDBO/wwWnLiOuh+uydgdycSl IWYvNCP/ksnjlqLXFz6hipklyLKAr1QAXGOom/GhpbS1yzdShup3re0/4i9epK7snC eHZ0slxKAOjPmYX0xj8aqJ2Op8sEtILpBkxkDcqy5Ie8qBz7qD2cWaGH66e3/hi4I5 40jzuA0yuQIucLROu97t2utbpOIUpMrWrogbQhua8zJG5Q9MdGN56JkpKvpN5eCIIO TQa0rPmVzbDUQ== Received: by mail-ej1-f69.google.com with SMTP id h22-20020a1709060f5600b006b11a2d3dcfso6611608ejj.4 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=kV9bWky3aqex0YOWejd45KPzqFNsCZcNjbYJT0yjx5k=; b=oMQEY1HcTDQKEX7Jjmkw3EnIWx8OpmHDlPAoaEZYIvCQudzdn2rVY1unCf2jVxJ54i R+RisjQeymrUgFurgJwVs6Hqdfoa+KlBr7sUQhSif7t0q2rPYR8f1gfp/NukZgnm4S9K dm5qDhXZ0iG6osMuVoB/CRujl6t+BF1ELI1beOpa6M83cTbnIFweJ+u1ehiDqxy0DNqi tm7Nutcb3tzhA6ufLY/xybD7B/TYlNZTeNU29meaRdEdbqIg5H+bBEyqCU0QZNi5L2Ky y64RfEfBMDJQDMI9gHRBoDtjuq9SDZQKlb6lA26aWJs5FfvecjHM++19uflFQaTuOGNU CJOg== X-Gm-Message-State: AOAM53201tgpNmB52g3Njxk/39NK6HRYYAggWt0T8Sykj+Kv8/gJ5MA0 xVrQURCUsIpgWOyuRufKn3ebD9JfMnX9GjExCDfCVwKZxsKyHjmj1J3kg7wQbOK94BriD+XiJNH K3zVLtBL1+Tsy1OTP6xA4T5e2q6vxU2dTaAp+2uDbvT9wTWbZtL6e X-Received: by 2002:a17:907:9956:b0:6cf:cd25:c5a7 with SMTP id kl22-20020a170907995600b006cfcd25c5a7mr7978726ejc.635.1646640572157; Mon, 07 Mar 2022 00:09:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwu85jkg65tIPk5L9NKONVRpMHiBi3IKZigN9L3D0ZJ8f0joA64x28uwWQqTpa7qj5dJKGMqw== X-Received: by 2002:a17:907:9956:b0:6cf:cd25:c5a7 with SMTP id kl22-20020a170907995600b006cfcd25c5a7mr7978714ejc.635.1646640572014; Mon, 07 Mar 2022 00:09:32 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 00:09:31 -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 5/7] tty: serial: samsung: constify s3c24xx_serial_drv_data members Date: Mon, 7 Mar 2022 09:09:23 +0100 Message-Id: <20220307080925.54131-4-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_297345_091BE99B X-CRM114-Status: GOOD ( 14.07 ) 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 --- 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 {