Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2089833pxm; Fri, 4 Mar 2022 09:11:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp/O7p6jsCXVuXH+0obJBezB8e/zvXR46wdkEEkcPtUNj7Vf+5UTy65CPeKBBAWPRk1oIV X-Received: by 2002:a17:907:9812:b0:6da:aaaf:7713 with SMTP id ji18-20020a170907981200b006daaaaf7713mr4770863ejc.163.1646413881720; Fri, 04 Mar 2022 09:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646413881; cv=none; d=google.com; s=arc-20160816; b=Njm1toKN+A6ShB4pTjtDYM15JdtIqPqeNONUVMRWIFeANFNo2mkZEu971e3u3KgzUM xzPPbFIEXf8NJuaJPpVkdDNEyU3KYQzo9LzQGNSXOJW1vh75q+AZ+kkK3L8Atk/UlT+T ncDTpyhtGMNzlpSi0NlLO0tiz6TO4LMubnrFRdF5nOvsSR9RYV9PbMaRK4y1q1VfekyA MpxcPz4tNM45xhxUYjvBWGgN7kYkT6bWAglOs2sGqQctnveYopmsuHalavMXH3Rb77uM itGUqhNvIahxABQ7Gqg5rNoafajVwJ/szA4YvDZjOR9bit6nhd/soN8BAR6J6sR7wRKJ Wm6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=T44npRNeKYD0vpyzx7RQhW2Cib6n/i6fxec+7s1/j58=; b=F/qXtC42781XF1pDg0l8mCgfur+i2ea5fSi0KB4P0il3QGmVdBr5Z9fzpIB5rAHtth qSJGazeazHDn5x5gdRtaAaYAMgUsr66+/mf/c8RiJfRgeOIPc/e1PR3ai7vJrje9N5CI KYikGMPQ/AfAr47+dayPUJJkr1kdCk4At9Sd4tLX1FOkSzEoft+73kJNSToUxdw5mAu1 pMOxj+XJ9AssGUYRxleMY++yoLTL0cfahqIcT7rMDfWrDuK718I3Xw6QoID67+XIHa3o Y0KzzNrG5T2iY8r1jdVMDNxcRMUXKTiVIXx/QlVmaTrntmwjr+mGp2D/yENCsUq+VqwD Ap3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=qoMxXMOD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170906278400b006cc86820574si3159440ejc.412.2022.03.04.09.10.57; Fri, 04 Mar 2022 09:11:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=qoMxXMOD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233189AbiCDIFH (ORCPT + 99 others); Fri, 4 Mar 2022 03:05:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231497AbiCDIE4 (ORCPT ); Fri, 4 Mar 2022 03:04:56 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08481F8BA7 for ; Fri, 4 Mar 2022 00:04:07 -0800 (PST) Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.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-0.canonical.com (Postfix) with ESMTPS id B85C93F614 for ; Fri, 4 Mar 2022 08:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646381045; bh=T44npRNeKYD0vpyzx7RQhW2Cib6n/i6fxec+7s1/j58=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qoMxXMODkwW8A8gli0H+ZRx52NzLj7+8Pf+CLTJJckbYz9d/r+tncdhzSVhRQkIFc Xhuzse3v4UWpUeaPS0N8YrF3D+wN0LECRocikKBY+jryALvh03kynGUO7Dbn7m19hp bypZO4tXaZ1BmSICl24yXFVl77PRdXc2KQQID1f8J46+M8gb4+gv3+nUUr+5IqnUhU gy2OtpWupcPhYpVJIM9eQL6QkjJF8ws0Ru7ypVwiRvHek9eeRhlmpCH0tf/YPv9CD/ WN3PMoyxLZJsrrCT3Peo0kC6vcdua3EY2ASjhcUkf3/5Piecu8xghTJ7yTNzTYjEYU 0hugcZmviFFag== Received: by mail-ej1-f71.google.com with SMTP id m4-20020a170906160400b006be3f85906eso4039251ejd.23 for ; Fri, 04 Mar 2022 00:04:05 -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=0sql2TYoWnSwaKTrL4eoExPMN/5p0T9AIF+9iugkjBrKZdHWRY/1lfugGKNESJ0jdA WTrrw+lej70RuJHUd8qkrTU+TJOn+l2aB13QLbBUw1FxfDmu0HWlW0W+k4L42dzL6w+a z0VwedSm659K/prdPRQOyoh/R2WaPeXw2YVwUC+mdV0m2ub11fTDGa/9glELtBQTcFmy efeh/szeQis/o6WdvHxhVv14IwUb3kODxv5qbCmGDTByEMUj/eSNb5GYK1kfO2/3+EHa vKxqo4viV0uRxJq0i4gfdxZOKaHXn5AeDj6nMrM272TAPkLWFHlQgL2Xm0f2bvx7Z9Ee o85A== X-Gm-Message-State: AOAM530NMNX77XVyy+U9HulzYbpx4/0FcPenkmW0d+pEyS6NCCpe2hPB Qz4+PnvcWCLsBlKjsOqmeRQFlxlDn8lFRtVt7FZOrkWGyiPnKljB8bvL8kNcS3cG+8+wEUXR/QJ ow6fpzS8PaL7og1Y5LxKZNhthdtFKwM9AmurznOdKPQ== X-Received: by 2002:aa7:c1d7:0:b0:415:9906:8900 with SMTP id d23-20020aa7c1d7000000b0041599068900mr14995529edp.360.1646381045436; Fri, 04 Mar 2022 00:04:05 -0800 (PST) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- 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 { -- 2.32.0