Commit 3d804a8
committed
media: i2c: imx283: Simplify VFLIP control setting
The VFLIP control is configured through the MDVREV bit of the HTRIMMING
register.
Simplify the conditional branch from 5 lines to 3 by determining the
trim value which must always include setting the HTRIMMING_EN bit,
and conditionally set the MDVREV before applying it to the hardware.
Signed-off-by: Kieran Bingham <[email protected]>1 parent 19479ab commit 3d804a8
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
958 | 956 | | |
959 | 957 | | |
960 | 958 | | |
| |||
0 commit comments