Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2742031lqp; Mon, 25 Mar 2024 08:04:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNPusrGmz0S8ux2wdRJyigitqEXZM7yNBpVFtjr/7n9pfQDTlteq5EPBiUvSuZX3h4Dg9atHCSIUAU4ZzMCsfp55lc8CtOGVANwSQ9QA== X-Google-Smtp-Source: AGHT+IFYxjM2EdHRgzw/gJw6tBYDWUWhnqeAFMxzV/lNxlslO3i5tx6nAgothd5j3lZJWzQ9tTjS X-Received: by 2002:a50:8759:0:b0:56b:7f43:5a49 with SMTP id 25-20020a508759000000b0056b7f435a49mr5148481edv.40.1711379056231; Mon, 25 Mar 2024 08:04:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711379056; cv=pass; d=google.com; s=arc-20160816; b=EtLV7OWagvLX8O0OVReM8Ot0CQRkfRrZB+PU7pardkzf5NUSYeI6pzGOOGQC4ZJdPn QLuxRQ2U1Ptr/Ua4Ut060QTbOscVn/qCzzaGMoUbsSbYuTVfokp+Fi0d7YJ6qqqg6wqY Q0C3EA/+2YcDC18sGAVeStx3hoS9+G44lblKCu2QO/ft2A5Sw94mt394cTKnRkWIbYZi tI54fxT3ps/iOEC8gvgT92lKezaImvlT0TK8FSrVZ2E4ZeSx2nxjR8n7uDpgc9Q0Mwm9 DOLPP+AWlmcAPUK7lJjs8mTj81MQ2SvFhZpjAhl81v/5jXPSlyuG5mlNLta1+6Dab89W b8Rg== 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=zDtIneRs+RCcZqrCZGgwK3i4xHOMsPwT2996r5eyAC4=; fh=3ZoQw7Bj31iotGNAN6WLWi4uJ+dskEA+2d5I/1eYXAg=; b=BHQPcUz0eV4vYMiO8+b9wgRgAh6Isfeknuky48HIu1mjoONJZL3PvYpaEablFlB7r/ gEAMd44XJNVWly4g+W0ZK+hGaA5l1BuAVzWcz8voztFPwLo9Ti6INsE5bdFf+5Q39okP 96+KTD/GY5HQsdyG6ZIYvJ4mfeK27UovXYNlWBVvgbTuaiCKs7J/J/8j5PM8Dm10KIM/ da7VlgDswA7BoHuKFQDg2YmHb7reJCNp391rAWGXkiooauZriYWWPjd4NSg/jXjssnNg LkElNm+pSRzD9RhdI3VInqVZLzQSq8HdVBB8Ofe5TETQXVXL4syMJsma32shQz3+iezJ vv2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HBiJJ9ZB; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-116977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a11-20020a05640213cb00b0056c09fda139si1440513edx.254.2024.03.25.08.04.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:04:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HBiJJ9ZB; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-116977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116977-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id B5A2D1F394F7 for ; Mon, 25 Mar 2024 15:04:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3808617F22C; Mon, 25 Mar 2024 12:11:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HBiJJ9ZB" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 EF1C0CA6B; Mon, 25 Mar 2024 12:09:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711368600; cv=none; b=RbICcXQcqFLeV0+q1193c0of6A8+XYkpc3Bd3fHOFncLH8nPSxJVro+fzwGOU8BoC2OjgTNo5+chgshI9htEcGKy8F09BkUCfAKzJqfWU0MIo+CBwmTejPjAbIzIv57wYMVe/ovAwWhgcT4GOpRG5ksYZ8BdSicLbmn0AyxtD6Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711368600; c=relaxed/simple; bh=0NKiHG7ZlFjs7TiosmHvTOqi/ShFoTyI/Q4Yj+MHyWo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fXBbV5dQSD+aFZeWXULUOlvDu7fjjegFobGLsQs1Ihue3a5O3Jr85+vTYYhpaK/AfxR239Yck1CYTueqfJJW5r6S8uto+B0D6HNAk+zy6ffuEh54wwW0hoLY6T82IoVQtkUb0pwW6MQtyC88yisOp72MJOhpTtQ2oJq8wzpwgx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HBiJJ9ZB; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711368599; x=1742904599; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0NKiHG7ZlFjs7TiosmHvTOqi/ShFoTyI/Q4Yj+MHyWo=; b=HBiJJ9ZBTEspO2TqR1h168O6pncSI57B6deJW7eI1ArDGifAE67itkSC Qgt9ThiLLpuAT52KP0E+ObZ9sYkIRhw7780XctUCrDIBnG7J0rlo/oPQw gmxHgFu76m/zB2xxhaZLXRLylBizMwLhaHy8SKURdJaZv82EsyaCXR5bl CSt/gs9QqFdX6yeVKifah3E0NI7zvLXi+sxhj9bFYbYxFQVLSunRlC9QU rVfRjnkEncxNhFXNUKG7E75Lzahs5K/8RiaSouxP7kTpVA7qBuxwCPVX4 LtMPwrfEl2JP/8C4DJ6EWUKX3jf884SUFde4LxzThHoIdE6o4JNjsofzO g==; X-IronPort-AV: E=McAfee;i="6600,9927,11023"; a="17757431" X-IronPort-AV: E=Sophos;i="6.07,153,1708416000"; d="scan'208";a="17757431" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 05:09:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11023"; a="937070313" X-IronPort-AV: E=Sophos;i="6.07,153,1708416000"; d="scan'208";a="937070313" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 25 Mar 2024 05:09:54 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 0F97B2CA; Mon, 25 Mar 2024 14:09:53 +0200 (EET) From: Andy Shevchenko To: Guenter Roeck , Patrick Rudolph , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jean Delvare , Andy Shevchenko Subject: [PATCH v1 2/3] hwmon: (pmbus/mp2975) Constify local pointers to pmbus_driver_info Date: Mon, 25 Mar 2024 14:07:43 +0200 Message-ID: <20240325120952.3019767-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240325120952.3019767-1-andriy.shevchenko@linux.intel.com> References: <20240325120952.3019767-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Constify the local variables pointing to "struct pmbus_driver_info" and other encoding params to annotate the function is not modifying pointed data. Signed-off-by: Andy Shevchenko --- drivers/hwmon/pmbus/mp2975.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/pmbus/mp2975.c b/drivers/hwmon/pmbus/mp2975.c index af118087c4ee..bc7558dc87ee 100644 --- a/drivers/hwmon/pmbus/mp2975.c +++ b/drivers/hwmon/pmbus/mp2975.c @@ -942,7 +942,7 @@ mp2975_vout_per_rail_config_get(struct i2c_client *client, return 0; } -static struct pmbus_driver_info mp2975_info = { +static const struct pmbus_driver_info mp2975_info = { .pages = 1, .format[PSC_VOLTAGE_IN] = linear, .format[PSC_VOLTAGE_OUT] = direct, @@ -967,7 +967,7 @@ static struct pmbus_driver_info mp2975_info = { #endif }; -static struct pmbus_driver_info mp2973_info = { +static const struct pmbus_driver_info mp2973_info = { .pages = 1, .format[PSC_VOLTAGE_IN] = linear, .format[PSC_VOLTAGE_OUT] = direct, -- 2.43.0.rc1.1.gbec44491f096