summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2020-06-23 15:07:24 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-07 15:40:06 +0100
commitd6a88e446c04aaf3ebc4e2221aa51bf367319480 (patch)
tree7a3e9686d90af4e577ed299d3ec31e12f14e25d8 /drivers/media
parent47b6eaf36eba143860cf4e772a1108b1ef05520d (diff)
downloadlinux-d6a88e446c04aaf3ebc4e2221aa51bf367319480.tar.bz2
media: ccs-pll: Move the flags field down, away from 8-bit fields
This way the struct will use less memory, with better packing and no waste due to unsigned long. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/i2c/ccs-pll.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ccs-pll.h b/drivers/media/i2c/ccs-pll.h
index d06a80c4fc52..1d908b23c934 100644
--- a/drivers/media/i2c/ccs-pll.h
+++ b/drivers/media/i2c/ccs-pll.h
@@ -40,12 +40,12 @@ struct ccs_pll {
struct {
uint8_t lanes;
} csi2;
- unsigned long flags;
uint8_t binning_horizontal;
uint8_t binning_vertical;
uint8_t scale_m;
uint8_t scale_n;
uint8_t bits_per_pixel;
+ uint16_t flags;
uint32_t link_freq;
uint32_t ext_clk_freq_hz;