Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: i2c: vd55g1: Fix RATE macros not being expressed in bps

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>

authored by

Benjamin Mugnier and committed by
Hans Verkuil
5b69a840 03dca184

+2 -2
+2 -2
drivers/media/i2c/vd55g1.c
··· 129 129 #define VD55G1_FWPATCH_REVISION_MINOR 9 130 130 #define VD55G1_XCLK_FREQ_MIN (6 * HZ_PER_MHZ) 131 131 #define VD55G1_XCLK_FREQ_MAX (27 * HZ_PER_MHZ) 132 - #define VD55G1_MIPI_RATE_MIN (250 * HZ_PER_MHZ) 133 - #define VD55G1_MIPI_RATE_MAX (1200 * HZ_PER_MHZ) 132 + #define VD55G1_MIPI_RATE_MIN (250 * MEGA) 133 + #define VD55G1_MIPI_RATE_MAX (1200 * MEGA) 134 134 135 135 static const u8 patch_array[] = { 136 136 0x44, 0x03, 0x09, 0x02, 0xe6, 0x01, 0x42, 0x00, 0xea, 0x01, 0x42, 0x00,