Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2195945iof; Tue, 7 Jun 2022 22:52:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKkpn0d7BSrq2Z8rDSx4nBxGX2X+sN18bgUrADfidO8ksPTGy+DRVn+B8e12wumesABEM1 X-Received: by 2002:a17:902:c402:b0:163:fa50:b345 with SMTP id k2-20020a170902c40200b00163fa50b345mr32796661plk.94.1654667576934; Tue, 07 Jun 2022 22:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667576; cv=none; d=google.com; s=arc-20160816; b=DXFRH9wQl/nrsap+SBco/GMh7yCn3EUzCd1f+2WvtcqbMemaZU62pI+indRHxUFXHO BKDDz5NOb50jVO3ZXDoVsfiZaOySocabgP5tFu0OoHTA1nE9aiqPgJLgcuM5KBHiJRw8 /je1oXe0xzEd2fFGhJyioUFvcO57qFaCnxHXXLOWbhRjvkTmXbSlNlcBtLgh/q6r0w36 mcp2GeTirP5pp5psK/1MFQbItqWMpcH3QSx9TVp0di3/hIeGvpDRxi0z+iJSXpRESWBp 1w7DgEAZpIOuyV8LX+SAGe63zf+MoBu2Hm31hQXvn6qef4qQQ4Rnoltq0IF2sPhr8yXU Zpuw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5bDq0GYiXRdLgb/tFyzQLI3lHFs1HTpcCO/ifuDeMYs=; b=nQb6NRxoHKSgoGWuHk6Ukk1xeuyuxRcaSOOIayTd7Zywm8bRWSBvEAgOBX9Nv+qLXC FZ0yMRLxp93t5GtZZghEs1V4mQ2/boh13Kr1EuV/Ca+ilR6e9sef1pcHz+OGvqmxn9Jw zsvdpNFk7wnto2omWA+KWLx93un2YXZklYd5fOGV8htV69JzzXQ1bcT8YMmIcmEbo5JX 6KrZoGOf524D3/Piz6LQ0Cwljg/iQawQWTUOXeehEkkNXKv3hJ7NDWKUi9oHKj5jUebk SUhpBCCsSuyybjqhCW/8K3Pi9DlWIsj1QQWOo8Ux73USU+VBFw0NpPFfebKiwvIiWnMQ TiWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LfhsM0NZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f4-20020a636a04000000b003fd943bd41csi13535363pgc.30.2022.06.07.22.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:52:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LfhsM0NZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 735FF4AEEBB; Tue, 7 Jun 2022 22:21:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442889AbiFHA5T (ORCPT + 99 others); Tue, 7 Jun 2022 20:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383300AbiFGVxC (ORCPT ); Tue, 7 Jun 2022 17:53:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A2905FE7; Tue, 7 Jun 2022 12:11:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A8B43B82182; Tue, 7 Jun 2022 19:11:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08A3EC385A2; Tue, 7 Jun 2022 19:11:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629072; bh=tDwZ+cRCl8rKQM727vQUjg2KyaP+QSUoDKb2AhzgPkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LfhsM0NZmIBX3LN2kmi/MDdkK2zSyYTq/ZHHSd1YZdPOtKG8dOTxZtUQkyJae6khM j+D2fWBpeGyDEVmd7dt+QjF7tq3+YJRFtA5iyQPsWaPA6BVYIxDNo9D2KESfwzT7TO oA67VvMlmLk8fOaY3YzoZnM91NkVlKhlmZcsPRbY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Appana Durga Kedareswara rao , Naga Sureshkumar Relli , Marc Kleine-Budde , Sasha Levin Subject: [PATCH 5.18 560/879] can: xilinx_can: mark bit timing constants as const Date: Tue, 7 Jun 2022 19:01:18 +0200 Message-Id: <20220607165019.118305403@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Marc Kleine-Budde [ Upstream commit ae38fda02996d43d9fb09f16e81e0008704dd524 ] This patch marks the bit timing constants as const. Fixes: c223da689324 ("can: xilinx_can: Add support for CANFD FD frames") Link: https://lore.kernel.org/all/20220317203119.792552-1-mkl@pengutronix.de Cc: Appana Durga Kedareswara rao Cc: Naga Sureshkumar Relli Signed-off-by: Marc Kleine-Budde Signed-off-by: Sasha Levin --- drivers/net/can/xilinx_can.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c index e562c5ab1149..43f0c6a064ba 100644 --- a/drivers/net/can/xilinx_can.c +++ b/drivers/net/can/xilinx_can.c @@ -239,7 +239,7 @@ static const struct can_bittiming_const xcan_bittiming_const_canfd = { }; /* AXI CANFD Data Bittiming constants as per AXI CANFD 1.0 specs */ -static struct can_bittiming_const xcan_data_bittiming_const_canfd = { +static const struct can_bittiming_const xcan_data_bittiming_const_canfd = { .name = DRIVER_NAME, .tseg1_min = 1, .tseg1_max = 16, @@ -265,7 +265,7 @@ static const struct can_bittiming_const xcan_bittiming_const_canfd2 = { }; /* AXI CANFD 2.0 Data Bittiming constants as per AXI CANFD 2.0 spec */ -static struct can_bittiming_const xcan_data_bittiming_const_canfd2 = { +static const struct can_bittiming_const xcan_data_bittiming_const_canfd2 = { .name = DRIVER_NAME, .tseg1_min = 1, .tseg1_max = 32, -- 2.35.1