From patchwork Tue Jan 21 06:45:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 13945892 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3518C02182 for ; Tue, 21 Jan 2025 07:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gQcCnSxYDrERdfeudnGXJ/+KmUmuS2MvNIf90QmKmf8=; b=IXnI47s4V8GFSsFBSaQHGNWzjk j5EoSDJ9W/NRnSpDLkGH2M3ilJsoffBqD3ZJOTyIs1a36evc8RzSia3igMIOFZI3yMEx+acBG4rzX C1q847OalhqAn7mdmfDklrnZV2NyxMJMC/XNmRR1rAT6RxUV9QH+CPvBQaxknBwkIpPfq7C+B1vwi P/AsccjfmLrrMvvax342IC5l1VwLvD2vv3Ho5qhMtJVH1b2Vepb0pdSH1E3IfN1RV1iroFlAK227A VpUMVads3AOYkihcM7y8S60OMSruWhiHAa0YSU0C3gEbEO8Hm9H/9KaKHfdbmbJ8cYauX05ITz3uP xGxDKz5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ta8bg-000000077zs-1vVx; Tue, 21 Jan 2025 07:23:28 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ta8Cq-000000072rz-1hnc for linux-arm-kernel@lists.infradead.org; Tue, 21 Jan 2025 06:57:49 +0000 Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4YcdH92N4Cz1kysr; Tue, 21 Jan 2025 14:54:29 +0800 (CST) Received: from dggemv703-chm.china.huawei.com (unknown [10.3.19.46]) by mail.maildlp.com (Postfix) with ESMTPS id D91471A016C; Tue, 21 Jan 2025 14:57:46 +0800 (CST) Received: from kwepemn100009.china.huawei.com (7.202.194.112) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 21 Jan 2025 14:57:46 +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:45 +0800 From: Huisong Li To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v1 19/21] platform/x86: dell-ddv: Fix the type of 'config' in struct hwmon_channel_info to u64 Date: Tue, 21 Jan 2025 14:45:17 +0800 Message-ID: <20250121064519.18974-20-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> MIME-Version: 1.0 X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemn100009.china.huawei.com (7.202.194.112) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250120_225748_603871_B09B52D6 X-CRM114-Status: GOOD ( 11.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- drivers/platform/x86/dell/dell-wmi-ddv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/dell/dell-wmi-ddv.c b/drivers/platform/x86/dell/dell-wmi-ddv.c index e75cd6e1efe6..efb2278aabb9 100644 --- a/drivers/platform/x86/dell/dell-wmi-ddv.c +++ b/drivers/platform/x86/dell/dell-wmi-ddv.c @@ -86,7 +86,7 @@ struct thermal_sensor_entry { struct combined_channel_info { struct hwmon_channel_info info; - u32 config[]; + u64 config[]; }; struct combined_chip_info { @@ -500,7 +500,7 @@ static const struct hwmon_ops dell_wmi_ddv_ops = { static struct hwmon_channel_info *dell_wmi_ddv_channel_create(struct device *dev, u64 count, enum hwmon_sensor_types type, - u32 config) + u64 config) { struct combined_channel_info *cinfo; int i; @@ -543,7 +543,7 @@ static struct hwmon_channel_info *dell_wmi_ddv_channel_init(struct wmi_device *w struct dell_wmi_ddv_sensors *sensors, size_t entry_size, enum hwmon_sensor_types type, - u32 config) + u64 config) { struct hwmon_channel_info *info; int ret;