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: rcar-csi2: Correct field size for PHTW writes

The data and code written thru the Test Interface Write Register (PHTW)
register are 8-bit wide, change the datatype used to reflect this.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Niklas Söderlund and committed by
Mauro Carvalho Chehab
ba7eb745 5ba5bda6

+5 -5
+5 -5
drivers/media/platform/renesas/rcar-csi2.c
··· 238 238 }; 239 239 240 240 struct phtw_value { 241 - u16 data; 242 - u16 code; 241 + u8 data; 242 + u8 code; 243 243 }; 244 244 245 245 struct rcsi2_mbps_reg { 246 246 u16 mbps; 247 - u16 reg; 247 + u8 reg; 248 248 }; 249 249 250 250 static const struct rcsi2_mbps_reg phtw_mbps_v3u[] = { ··· 1451 1451 * NOTE: Magic values are from the datasheet and lack documentation. 1452 1452 */ 1453 1453 1454 - static int rcsi2_phtw_write(struct rcar_csi2 *priv, u16 data, u16 code) 1454 + static int rcsi2_phtw_write(struct rcar_csi2 *priv, u8 data, u8 code) 1455 1455 { 1456 1456 unsigned int timeout; 1457 1457 ··· 1488 1488 } 1489 1489 1490 1490 static int rcsi2_phtw_write_mbps(struct rcar_csi2 *priv, unsigned int mbps, 1491 - const struct rcsi2_mbps_reg *values, u16 code) 1491 + const struct rcsi2_mbps_reg *values, u8 code) 1492 1492 { 1493 1493 const struct rcsi2_mbps_reg *value; 1494 1494 const struct rcsi2_mbps_reg *prev_value = NULL;