]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: i2c: vd55g1: Fix RATE macros not being expressed in bps
authorBenjamin Mugnier <benjamin.mugnier@foss.st.com>
Wed, 11 Jun 2025 08:48:30 +0000 (10:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:24 +0000 (18:41 +0200)
[ Upstream commit 5b69a84005b686365e9cacb2ca942271ed74867a ]

As a bit rate is expressed in bps, use MEGA instead of HZ_PER_MHZ.

Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/vd55g1.c

index 8552ce75e1aa5f7c61753249ff749b00ea4602dd..d00daf89be96d8e3669d1e116dfd84dbe69b1924 100644 (file)
 #define VD55G1_FWPATCH_REVISION_MINOR                  9
 #define VD55G1_XCLK_FREQ_MIN                           (6 * HZ_PER_MHZ)
 #define VD55G1_XCLK_FREQ_MAX                           (27 * HZ_PER_MHZ)
-#define VD55G1_MIPI_RATE_MIN                           (250 * HZ_PER_MHZ)
-#define VD55G1_MIPI_RATE_MAX                           (1200 * HZ_PER_MHZ)
+#define VD55G1_MIPI_RATE_MIN                           (250 * MEGA)
+#define VD55G1_MIPI_RATE_MAX                           (1200 * MEGA)
 
 static const u8 patch_array[] = {
        0x44, 0x03, 0x09, 0x02, 0xe6, 0x01, 0x42, 0x00, 0xea, 0x01, 0x42, 0x00,