lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <171145142670.1011926.13962568934811871543@ping.linuxembedded.co.uk>
Date: Tue, 26 Mar 2024 11:10:26 +0000
From: Kieran Bingham <kieran.bingham@...asonboard.com>
To: Alexander Shiyan <eagle.alexander923@...il.com>, Dave Stevenson <dave.stevenson@...pberrypi.com>, Sakari Ailus <sakari.ailus@...ux.intel.com>, Umang Jain <umang.jain@...asonboard.com>, open list <linux-kernel@...r.kernel.org>
Cc: Umang Jain <umang.jain@...asonboard.com>, Tommaso Merciai <tomm.merciai@...il.com>
Subject: Re: [PATCH v3 4/6] media: imx335: Use integer values for size registers

Quoting Umang Jain (2024-03-19 07:27:10)
> Consider integer values for registers that are related to various
> sizes in the register map. This helps in improving the overall
> readability.
> 
> No functional changes intended in this patch.

Thanks, I think this definitely helps readability here for these units.

Reviewed-by: Kieran Bingham <kieran.bingham@...asonboard.com>

> 
> Signed-off-by: Umang Jain <umang.jain@...asonboard.com>
> Reviewed-by: Tommaso Merciai <tomm.merciai@...il.com>
> ---
>  drivers/media/i2c/imx335.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/media/i2c/imx335.c b/drivers/media/i2c/imx335.c
> index ae4341644a84..7609dbc537b1 100644
> --- a/drivers/media/i2c/imx335.c
> +++ b/drivers/media/i2c/imx335.c
> @@ -251,12 +251,12 @@ static const struct cci_reg_sequence mode_2592x1940_regs[] = {
>         {IMX335_REG_MODE_SELECT, 0x01},
>         {IMX335_REG_MASTER_MODE, 0x00},
>         {IMX335_REG_WINMODE, 0x04},
> -       {IMX335_REG_HTRIMMING_START, 0x0180},
> -       {IMX335_REG_HNUM, 0x0a20},
> -       {IMX335_REG_Y_OUT_SIZE, 0x0794},
> -       {IMX335_REG_AREA3_ST_ADR_1, 0x00b0},
> -       {IMX335_REG_AREA3_WIDTH_1, 0x0f58},
> -       {IMX335_REG_OPB_SIZE_V, 0x00},
> +       {IMX335_REG_HTRIMMING_START, 384},
> +       {IMX335_REG_HNUM, 2592},
> +       {IMX335_REG_Y_OUT_SIZE, 1940},
> +       {IMX335_REG_AREA3_ST_ADR_1, 176},
> +       {IMX335_REG_AREA3_WIDTH_1, 3928},
> +       {IMX335_REG_OPB_SIZE_V, 0},
>         {IMX335_REG_XVS_XHS_DRV, 0x00},
>         {CCI_REG8(0x3288), 0x21}, /* undocumented */
>         {CCI_REG8(0x328a), 0x02}, /* undocumented */
> -- 
> 2.43.0
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ