Message ID | 20250121064519.18974-3-lihuisong@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 B11061B372C; Tue, 21 Jan 2025 06:57:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737442652; cv=none; b=M796uJZ4sc74pD7/pJr442D3VzeAzAFE0GmwtuDFYlVQDT1PzWrK8n/kraESDYvnNlSNA1m4M3EVrFQciqZF+k5zWWwowwM11rrF1ZyFa7+OhFZdkxwQimcHn7NW0Jv9WzO9pK5AV5ooazvGHuY1sQKoyQfQ9stPUOaiX2k1nrc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737442652; c=relaxed/simple; bh=PKFWxvHFx9wxQ8urCnfMAZp5c1gBL8z/TIwH0zZIVCs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pnbnqHdY+oV71j+cAaRxR4dRG4ooW5KMHFYSU7+Fjev5PXjzc9cXmHFX2hYPVO/83r3hLw3BnC1r4DhtIgPtuRljUl5YTDtGRiBKM62gs3RS0XjVsOcxSPwozH+pPtttpmvrnDaC2NgmIkLO/qJ2BE3tCG713HNHijHdTt1ps8Q= 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.187 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.162.254]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4YcdGt0X8Czbp8L; Tue, 21 Jan 2025 14:54:14 +0800 (CST) Received: from dggemv706-chm.china.huawei.com (unknown [10.3.19.33]) by mail.maildlp.com (Postfix) with ESMTPS id B7C3D180105; Tue, 21 Jan 2025 14:57:22 +0800 (CST) Received: from kwepemn100009.china.huawei.com (7.202.194.112) by dggemv706-chm.china.huawei.com (10.3.19.33) 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:22 +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:20 +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 02/21] media: video-i2c: Use HWMON_CHANNEL_INFO macro to simplify code Date: Tue, 21 Jan 2025 14:45:00 +0800 Message-ID: <20250121064519.18974-3-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-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+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/media/i2c/video-i2c.c b/drivers/media/i2c/video-i2c.c index 036a6375627a..0dd991d70d53 100644 --- a/drivers/media/i2c/video-i2c.c +++ b/drivers/media/i2c/video-i2c.c @@ -264,18 +264,8 @@ static int amg88xx_set_power(struct video_i2c_data *data, bool on) #if IS_REACHABLE(CONFIG_HWMON) -static const u32 amg88xx_temp_config[] = { - HWMON_T_INPUT, - 0 -}; - -static const struct hwmon_channel_info amg88xx_temp = { - .type = hwmon_temp, - .config = amg88xx_temp_config, -}; - static const struct hwmon_channel_info * const amg88xx_info[] = { - &amg88xx_temp, + HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), NULL };
Use HWMON_CHANNEL_INFO macro to simplify code. Signed-off-by: Huisong Li <lihuisong@huawei.com> --- drivers/media/i2c/video-i2c.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)