From patchwork Fri Mar 4 08:03:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12768691 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 695F4C433EF for ; Fri, 4 Mar 2022 08:07:28 +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=N1AxQvJAsh4cAEC7Ii8mlVeP+4lGzn35RJvtzbxGQXY=; b=jjkrRbMXwGssj8 VD2ay9IQfnFoetZQ+r67lG9nVly20sh3Z2GooBnkQvZyxc54y61/4ucKS5XOhc45NhdVthZEoLt4A K785P5Zklic0FdGp2sbCbLu468OTOGWUlSesF6h9YLCg1DZSK/LRtMIAuKxmG1BAzh+hyA9Q5rCzK bgrnZ3/4ErjZE4jV8sPvLaKaIgjOXP3dOv5VPVmH14156553i7J3XQMq0jGYR2lhB/iDlrVh8syAK NrY8+Rcu5uNoaJq8KHgpuRET5RO1orxy6XYOS3setRXzJ8owcOkDF33JwMx/z0A0eDruqsLdtU17W wKDnHfNz3YObnLueVYEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ2wl-008vA2-5A; Fri, 04 Mar 2022 08:05: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 1nQ2v3-008uSN-2P for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 08:04:12 +0000 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.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-1.canonical.com (Postfix) with ESMTPS id 0584B3F5F2 for ; Fri, 4 Mar 2022 08:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646381047; bh=T44npRNeKYD0vpyzx7RQhW2Cib6n/i6fxec+7s1/j58=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=m0TuRjDCGkkAr1IFR1Ty81Wc6W5SmTjDdAp0V0UQKEXU+FxXy1qyKO3wGtT1atHxG hTB99HUM9JcI7CtWwBiSY0+4ulOEdI1VdogREnoeWHJQcXHg+eaYq6cVnYfG+Skdhb c1aB5uM7G7Xp2pZtfQnEdRBSrnCs9refkIp+crG4JlmUJQbEQMNTro3/djP0AyeVMX YuTqHdSz0h6/5BSQrXUb1ZvnYmDPDy+tF98rwxp+bGld5kwzmFxVuLuz4ODwzasSEs QCM5tdSjYt4f7RpHYULP+AS2VGQgaOl539jlWZJ00sYxOAy4YWwQJ0gd0DPtijfYJr 2ZmV+KdtLh5yg== Received: by mail-ed1-f69.google.com with SMTP id l14-20020a056402344e00b0041593c729adso4202762edc.18 for ; Fri, 04 Mar 2022 00:04:07 -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=T44npRNeKYD0vpyzx7RQhW2Cib6n/i6fxec+7s1/j58=; b=pubR2DA8E5J8l91eHwP9bJAAoWNq+pmuQ49hGU4S4Ei+7ABaZPY+R1OwJu71SOVWCr 8mv/Xq/AkfLrGR6JmHspKOuwBjBNnHaMON1MflsHvlR35eFq+tdT/hVHBUhjKM3dcpJ6 UvET3+HxutcL1j2sCz99fiMX8Sk+xRnm2uvEJXMqU/K+XdJkwMj4TRTpo95KKvPBc0xy Spk3mzvrhDAQ9nLX3oGsbdlUMJfK/ogtyiVliTrqGcLDXRy2HTZUiCRfaqObCtA8A7Ju yoJVzW8RS24ebYsJ8wSdMUGMemLfs4FYmkZePEuHEoVdAf75T0bgzHoH6TGzNaF7JCp5 cTyg== X-Gm-Message-State: AOAM53161+Vb3ZrVg7g8mh5LxxsmXWftzXg5Y5lUFUBp6royz9d3wE5I eNuljv6MLtsYiW6CHsqtoqGgnx8axNKOisa9KdntqGyI8LE4PNQfCGktdtLNy7K7O9o3USmn6Yd o8hbPtz9W//zd3qlFD+Yk3Z/jCym/4tjUAigX5xR3flL+CFph9cIT X-Received: by 2002:aa7:c1d7:0:b0:415:9906:8900 with SMTP id d23-20020aa7c1d7000000b0041599068900mr14995505edp.360.1646381045100; Fri, 04 Mar 2022 00:04:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQx+JALUcgr+aV10z5DLRK2lWPO6mxFP6+bRPUxVe5mDfuxGx3aQWGNaHOFHObaAzRiHXZiw== X-Received: by 2002:aa7:c1d7:0:b0:415:9906:8900 with SMTP id d23-20020aa7c1d7000000b0041599068900mr14995487edp.360.1646381044922; Fri, 04 Mar 2022 00:04:04 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id rv11-20020a17090710cb00b006d5c0cd5e0dsm1481465ejb.82.2022.03.04.00.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 00:04:03 -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 5/7] tty: serial: samsung: constify s3c24xx_serial_drv_data members Date: Fri, 4 Mar 2022 09:03:46 +0100 Message-Id: <20220304080348.218581-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220304080348.218581-1-krzysztof.kozlowski@canonical.com> References: <20220304080348.218581-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-20220304_000409_307438_EB7D13A1 X-CRM114-Status: GOOD ( 13.60 ) 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 make 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 279c413f2300..eecefff5c4a4 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 {