projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03dca18
)
media: i2c: vd55g1: Fix RATE macros not being expressed in bps
author
Benjamin Mugnier
<benjamin.mugnier@foss.st.com>
Wed, 11 Jun 2025 08:48:30 +0000
(10:48 +0200)
committer
Hans Verkuil
<hverkuil@xs4all.nl>
Mon, 30 Jun 2025 07:06:21 +0000
(09:06 +0200)
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>
drivers/media/i2c/vd55g1.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/i2c/vd55g1.c
b/drivers/media/i2c/vd55g1.c
index 25e2fc88a0367bf6a28bb22d209323ace99299f2..78dd22d9cab03edf4ff3e5a301f8d045e930c997 100644
(file)
--- a/
drivers/media/i2c/vd55g1.c
+++ b/
drivers/media/i2c/vd55g1.c
@@
-129,8
+129,8
@@
#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,