From patchwork Mon Jan 22 03:31:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raag Jadav X-Patchwork-Id: 189933 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2414343dyb; Sun, 21 Jan 2024 23:31:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTiFPNxQP/aPjlwULawYV0Zya/8Lc+5LWGxoxoHOaZI+qCIqWSypbxR3KiyUuWVRX0Pu35 X-Received: by 2002:a25:ab28:0:b0:da0:3bfc:b915 with SMTP id u37-20020a25ab28000000b00da03bfcb915mr1749581ybi.11.1705908676350; Sun, 21 Jan 2024 23:31:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705908676; cv=pass; d=google.com; s=arc-20160816; b=ACJMY2I1J7vDxzizojQDJL3KmDV/jJD+4XgiuS8R/WDDXGoobJXvNXU+4dePDP8t+o 5GkjSAoYOAS57Uo7lyDuxQqjaJ2+eJPE+LquiWoOzhwsCSA3vZXhVJAb3aLAdwfEP37V HsfzvUy81egd/PjTa+rHsPXm1vq+8inxiusvBsBiYEsSKP3ByM+vxt+2CAyLvflgIIDo Td+Y/+mcH3IJN+uw3h0EAT/CHrsylB3v0xkVsOIaowmrtJyRxz1H/e4FzIcIMpAQTuIs eL1Jh/wN8JzXHefv5GJCpNr6XY/96snlG8BeVuUzLvs+7/RWvkGxbI4HxGVOvbR9pRJ8 232Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IQUkXNJCJNwhc9ET01nMF0v2M4MQAqvLhdLOQoMcChQ=; fh=k6PJbscHalyqgpHdfYG8aQVTifg+bsfgmTcOMStBKQo=; b=BCJkh9Jt55vxG9CZzoamOn3kjjD31iRwdFpjHl/pvZrAxVArm1ArwQMXDpiXv5jZi0 Pp/GeMEb9/iA+CwdK0IWT/wqOAqtP1yhv78+VAmMcC5tGooWuyA/ZfCo0YgVv1VmjkHh XRWwAaPb2+psFnKqIaroNZf2ZeFQKsL9fwb51k33feRwQ/zXu3vEuJKeAXk7C7gI4z0Y 9Fhu82ZRVDXHUtwPu7bXn2ztDU/RFf6v4du4MRYBJynJ4ssRRgGJv+47JWustPdDXopD tVp6CrUZXU0+xvODvIHXjny7EVaZAjIUD3nJWRIKuPdK3csx9WFmweFdi8Yv0ZDzQHH2 Jlaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NqlT+7uH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32303-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32303-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n12-20020a0c8c0c000000b00681944692bcsi5040865qvb.233.2024.01.21.23.31.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 23:31:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32303-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NqlT+7uH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32303-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32303-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3E4491C225B0 for ; Mon, 22 Jan 2024 03:32:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59893612B; Mon, 22 Jan 2024 03:31:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NqlT+7uH" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AFDA1FB3; Mon, 22 Jan 2024 03:31:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.93 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705894280; cv=none; b=s8XyoneHxQZqR7yt6mhEDMd5kJjU9OPuegwu28zeb4UA4xzMVeb7j4h9XpPWivSEm/V8dNYzk+r0U02zmbMxNVKLDVpd+Tfz20LPRlldtGvaJeKdPzhKG3Wk0gZTCY5GrNr2hcNfGhqhyim3doIcNrUmLcNJuDZfci51wU82yO0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705894280; c=relaxed/simple; bh=zer1jRV/GAIWj9fYX2ouZMY4bsuRLMRPLMmAQ3RyJEQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WkCWBmOQF2VuMRjTxLyPkQz4u2zoIOwondxc1hm0GBkhtlkW0phN+yrig78eRHLmVoZDvBmXCUZsugVA85MMvssTajH5djCy7/YxilPlHe1y9U/PRxo5/PXSIZ1x/pxwoD/DCKx/DLYCypA4yp9JJg8rgB2QFYuJ17jPEyuwA+Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=none smtp.mailfrom=ecsmtp.iind.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NqlT+7uH; arc=none smtp.client-ip=192.55.52.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ecsmtp.iind.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705894279; x=1737430279; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zer1jRV/GAIWj9fYX2ouZMY4bsuRLMRPLMmAQ3RyJEQ=; b=NqlT+7uHP4/x5SpMC9jC6xYT3patRfdKzgWDNX0828qAP/iW68Ncg2uQ SOUXS8HzLontkZp3briU5eKuBGm3OmaHt2sGsh9Q8uHA2lqUbQtQzYHH1 ky5BvJyWoTulToz0bFRHbgNe08TEbaJoWbKnz6qMiJDaMtUTBmNuwOOXx OUOK4q4Hscu/B1dLEB3ScM6RhN6zWlk8F3solKaCuscIUkw9FK/6tP8ya uSMTIYNBi8IY2MFavAl9zFELtnSveoAV4AUrPkJt/+efUBEvYX2nB/ElF +HjX+t6+4XmASot/dDIjP+4JEXANNmPDT3SOLqvj2MQnJIQvLtVMDhkpq Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="398255344" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="398255344" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2024 19:31:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="1066919" Received: from inesxmail01.iind.intel.com ([10.223.57.40]) by orviesa005.jf.intel.com with ESMTP; 21 Jan 2024 19:31:15 -0800 Received: from inlubt0316.iind.intel.com (inlubt0316.iind.intel.com [10.191.20.213]) by inesxmail01.iind.intel.com (Postfix) with ESMTP id 53E044851; Mon, 22 Jan 2024 09:01:14 +0530 (IST) Received: by inlubt0316.iind.intel.com (Postfix, from userid 12101951) id 513501600101; Mon, 22 Jan 2024 09:01:14 +0530 (IST) From: Raag Jadav To: jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, jsd@semihalf.com, andi.shyti@kernel.org Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Raag Jadav Subject: [PATCH v1 2/2] i2c: designware: constify regmap_config Date: Mon, 22 Jan 2024 09:01:08 +0530 Message-Id: <20240122033108.31053-2-raag.jadav@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240122033108.31053-1-raag.jadav@intel.com> References: <20240122033108.31053-1-raag.jadav@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788774896360117672 X-GMAIL-MSGID: 1788774896360117672 We never modify regmap_config, mark it as const. Signed-off-by: Raag Jadav Acked-by: Jarkko Nikula --- drivers/i2c/busses/i2c-designware-platdrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 855b698e99c0..d122ef349b1c 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -100,7 +100,7 @@ static int bt1_i2c_write(void *context, unsigned int reg, unsigned int val) BT1_I2C_CTL_GO | BT1_I2C_CTL_WR | (reg & BT1_I2C_CTL_ADDR_MASK)); } -static struct regmap_config bt1_i2c_cfg = { +static const struct regmap_config bt1_i2c_cfg = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4,