Message ID | 20250121064519.18974-17-lihuisong@huawei.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show
Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (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 CA7221F4E56; Tue, 21 Jan 2025 06:57:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737442672; cv=none; b=da98ELM831hLl1rh/tqlbarXRpNdjPhOz/ieeQyLHKuNw0Ag2ly0I8vdje6FBoVECoe84Ja7/3ZTBhOHxOUMvYgZKSNZzQUTSJvia2elIXMuw3MwHbW0YVGFGGSN/LRByQrQvUqiRqYn8+jV8bJr8kNwVmwjnzNOhdeXhrUfJZ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737442672; c=relaxed/simple; bh=03LFVz8QdFx6HhO55R6VxI5OCUcw5G4QFT9N+bO7Qbo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hMZtgZhbT+R5sg/JIhqZbf/TxHfyO7/3gytxxUelqelFVwDAXlkadbQTuSXy/t5Vbwnhb5xDiNJZpa3qy5KhoCnAzqOT+vx6lI3Jq2VQCLfGjhU6LUia+EdqByvKJ76PPEHeHs9G4XcDVEvfBbICutaO9HAos0597zkZshr125U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4YcdH42gSBz1V5Kv; Tue, 21 Jan 2025 14:54:24 +0800 (CST) Received: from dggemv712-chm.china.huawei.com (unknown [10.1.198.32]) by mail.maildlp.com (Postfix) with ESMTPS id A71D41400D5; Tue, 21 Jan 2025 14:57:42 +0800 (CST) Received: from kwepemn100009.china.huawei.com (7.202.194.112) by dggemv712-chm.china.huawei.com (10.1.198.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 21 Jan 2025 14:57:42 +0800 Received: from localhost.localdomain (10.28.79.22) by kwepemn100009.china.huawei.com (7.202.194.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 21 Jan 2025 14:57:40 +0800 From: Huisong Li <lihuisong@huawei.com> To: <linux-hwmon@vger.kernel.org> CC: <linux-kernel@vger.kernel.org>, <linux-media@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <arm-scmi@vger.kernel.org>, <netdev@vger.kernel.org>, <linux-rtc@vger.kernel.org>, <oss-drivers@corigine.com>, <linux-rdma@vger.kernel.org>, <platform-driver-x86@vger.kernel.org>, <linuxarm@huawei.com>, <linux@roeck-us.net>, <jdelvare@suse.com>, <kernel@maidavale.org>, <pauk.denis@gmail.com>, <james@equiv.tech>, <sudeep.holla@arm.com>, <cristian.marussi@arm.com>, <matt@ranostay.sg>, <mchehab@kernel.org>, <irusskikh@marvell.com>, <andrew+netdev@lunn.ch>, <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <saeedm@nvidia.com>, <leon@kernel.org>, <tariqt@nvidia.com>, <louis.peens@corigine.com>, <hkallweit1@gmail.com>, <linux@armlinux.org.uk>, <kabel@kernel.org>, <W_Armin@gmx.de>, <hdegoede@redhat.com>, <ilpo.jarvinen@linux.intel.com>, <alexandre.belloni@bootlin.com>, <krzk@kernel.org>, <jonathan.cameron@huawei.com>, <zhanjie9@hisilicon.com>, <zhenglifeng1@huawei.com>, <liuyonglong@huawei.com>, <lihuisong@huawei.com> Subject: [PATCH v1 16/21] hwmon: (tmp401) Fix the type of 'config' in struct hwmon_channel_info to u64 Date: Tue, 21 Jan 2025 14:45:14 +0800 Message-ID: <20250121064519.18974-17-lihuisong@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20250121064519.18974-1-lihuisong@huawei.com> References: <20250121064519.18974-1-lihuisong@huawei.com> Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: <linux-hwmon.vger.kernel.org> List-Subscribe: <mailto:linux-hwmon+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-hwmon+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemn100009.china.huawei.com (7.202.194.112) |
Series |
hwmon: Fix the type of 'config' in struct hwmon_channel_info to u64
|
expand
|
diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c index 02c5a3bb1071..e62df28a6e50 100644 --- a/drivers/hwmon/tmp401.c +++ b/drivers/hwmon/tmp401.c @@ -113,9 +113,9 @@ struct tmp401_data { bool extended_range; /* hwmon API configuration data */ - u32 chip_channel_config[4]; + u64 chip_channel_config[4]; struct hwmon_channel_info chip_info; - u32 temp_channel_config[4]; + u64 temp_channel_config[4]; struct hwmon_channel_info temp_info; const struct hwmon_channel_info *info[3]; struct hwmon_chip_info chip;
The type of 'config' in struct hwmon_channel_info has been fixed to u64. Modify the related code in driver to avoid compiling failure. Signed-off-by: Huisong Li <lihuisong@huawei.com> --- drivers/hwmon/tmp401.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)