Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp752989pxm; Wed, 2 Mar 2022 07:50:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBs6tlG41SQNX2a7ogJNeWY7VRV0T4wp7rh34Pu5SzZ9J7UCIHO8pA74D0E7ffwZHgYQ7T X-Received: by 2002:a63:ec4f:0:b0:378:d43b:2272 with SMTP id r15-20020a63ec4f000000b00378d43b2272mr9777447pgj.29.1646236210340; Wed, 02 Mar 2022 07:50:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646236210; cv=none; d=google.com; s=arc-20160816; b=Dj/qnkG340J6oEEcOWXnLVrzQ2mb7K3+eMwNfC07kFpXTBy1xM5DfIabF6+FMLdND3 /lKscDj5jr+4Fk2MoDmu+Q+BLi2EaQVHk68zzKFoDv+r4EC/6z6PQNP8xJhZSlNTls6m kMoDpaPNUKeM5Jl/WZMBJddFbXtIEdX62LZ3KuWn7G5RYnC3foh5BsiBO0fLopxNc/5k l8rHRCG+4Kx8PieHxtrc63qe6w3cqUWR/3vxh1r7r4BJaJ+UAxJTJDV/YOuK/xRIQJ+V /DMmZSwTd5t8a4fMaH+gISNZA0XAU8F6OiG2bgWnoAYjd85fSQSsrvFI8Q7covPveYBZ XMBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=UIvLL/Xy91JReyqLFHSeFe/zpskkHQnpVd4SIdUB3UQ=; b=zxCQPg+tshwkwWp//KOxzQlc2cxtdQy0b/8KtDxLy2QDeFrO5lQsAjGsM5FhM8dME6 4O87S6dJPZtKgntDEsDHSfQDE1APSFCU5apWu1+gjlYRy8xCzXT7wLIDa6MRgk3UKmlB G2pyhiefqSSqsedrCF+fM7IC4Ov3s7XG7RJCBOz5b5N5AXkxbe64RCagu7JAEgSaFgf1 UImMVJA6TQjvEcPEtZx8FGa9Hwci3PLf0xY8cduvBv93AOD8Y5T/e6L13U1cP1lLkCae g/UgW5W+TEBm3BM8rM3wffH+PczENl/X/miUHxIJ5e5qv+7V1OAE/+kjcTTjQRQqNJVD Iurg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=QCd5TCbh; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a654207000000b00378ef4d76f4si4460225pgq.492.2022.03.02.07.49.54; Wed, 02 Mar 2022 07:50:10 -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=@quicinc.com header.s=qcdkim header.b=QCd5TCbh; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241873AbiCBMoV (ORCPT + 99 others); Wed, 2 Mar 2022 07:44:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241864AbiCBMoQ (ORCPT ); Wed, 2 Mar 2022 07:44:16 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5AE98AE4B; Wed, 2 Mar 2022 04:43:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1646225014; x=1677761014; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=UIvLL/Xy91JReyqLFHSeFe/zpskkHQnpVd4SIdUB3UQ=; b=QCd5TCbhS33YTBzYqA76LOas1kUSCZr2k0FtT2m8CxSomeSGvLsHn6uD a3U2iTUQW2eK6k26f6nsQTfcm61Q09Y9Aljf+ZuEutDRTpw510vUezciE fQC91P31SV+LrCbhYg7oJDvvn7qUDcmx8AudWass2/2iziVh9d/+B/DbR Y=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 02 Mar 2022 04:43:33 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 04:43:32 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Wed, 2 Mar 2022 04:43:32 -0800 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Wed, 2 Mar 2022 04:43:25 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v6 2/3] soundwire: qcom: constify static struct qcom_swrm_data global variables Date: Wed, 2 Mar 2022 18:13:01 +0530 Message-ID: <1646224982-3361-3-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1646224982-3361-1-git-send-email-quic_srivasam@quicinc.com> References: <1646224982-3361-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,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 qcom_swrm_data structures is only required for setting soundwire params, so make the qcom_swrm_data structure const to allow the compiler to put it in read-only memory and avoid unintentional modifications. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu --- drivers/soundwire/qcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index fc41210..2d955ca 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -166,12 +166,12 @@ struct qcom_swrm_data { u32 default_rows; }; -static struct qcom_swrm_data swrm_v1_3_data = { +static const struct qcom_swrm_data swrm_v1_3_data = { .default_rows = 48, .default_cols = 16, }; -static struct qcom_swrm_data swrm_v1_5_data = { +static const struct qcom_swrm_data swrm_v1_5_data = { .default_rows = 50, .default_cols = 16, }; -- 2.7.4