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: 550305 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B3DAC433EF for ; Tue, 8 Mar 2022 08:09:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344836AbiCHIKr (ORCPT ); Tue, 8 Mar 2022 03:10:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344805AbiCHIK3 (ORCPT ); Tue, 8 Mar 2022 03:10:29 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 145A63EB92 for ; Tue, 8 Mar 2022 00:09:32 -0800 (PST) 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 E52BE3F7DE for ; Tue, 8 Mar 2022 08:09:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646726970; bh=Dr4tgo26oKDD7/cFmU+MgZtFQEJoCk73ZvgNX0zaNnk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=d0BvjM+h5s2IiTMR9GHZh9HQp7ZL+DxL0OEbCJZOQ2dH5k4Kt3uIwSIseMS+mkjui ZFKLsQ8Gc77r0Wz9fnFVsAZuqxjs2U/vwVVgkhEWvY3BfU0/CYE5ukWf2djwu06Lhl BV2GVwYRuH+aLSsVY4VIkFD0NlOv2Tq08OVvdJUtykdEZ+Bf3xEMPRyzgF7FY08TzV /5MPrPrXoe25X80xaVDgUprL1mpWfE8j7YqKld3yPKcSfdtUedRF/JdbORy8HpBE/n QLnpfMPg0eA9WvwK/SPuNXHpIML52HIY1xh5voZTXSRC/sObGOdy3EeoIyFQuLjRfV 8skUYkeuMNarQ== Received: by mail-ej1-f70.google.com with SMTP id h22-20020a1709060f5600b006b11a2d3dcfso8255405ejj.4 for ; Tue, 08 Mar 2022 00:09:30 -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=GyDzQgiv9TpwTv7k9liZ6qsuAj/LKO5+/eBgf1DKyubRbAGw1/Du1+m5LVw78dnkFJ nADJxJxrNu7LsqGXO/xmA9CVSVLJFgj233RSN0DwnA2dWIiF6jlmM7FaU5YZq9D1aDNJ OUmmU9A8c2uieinkLrvECoEmKi4l2aSyKAUCg4RmaytqYrrxZMMQmDlGVgLZYLTLLiEV 0GXWjh5aRrzXqVZthrxfZBSNjUsBP/WMHS1LefIQyTQMFuItRjhBZ4t4Seg3qB06DnJ5 zVML7vsC1/VN5o+lS7Vput0RC5CM5AXdxM58kgmwVd1Y4CZuSrIky1GSBhGY7zKyAy43 JGJA== X-Gm-Message-State: AOAM532HswCSlJQpOnc4vyj6M6H4kZlHbXUJl6RYhgBc6feIAMnfSrLJ 4AS8BgBgs8c/voGblLfQED7pxK/q/anYcERf7aTLw4mSlIbGdbr9WnM3boXTwSdeovV0c4AJq6I x4NB5dgx1iZYjPoJyTKtPj35QihvAjNpMnV2dZEboMbyY/vse X-Received: by 2002:a17:906:3e90:b0:6b6:829b:577c with SMTP id a16-20020a1709063e9000b006b6829b577cmr12689317ejj.711.1646726970628; 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 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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 {