Re: [PATCH] iio: chemical: scd30: make command lookup table const

From: Maxwell Doose

Date: Fri May 08 2026 - 11:16:31 EST


On Fri, May 8, 2026 at 8:53 AM Giorgi Tchankvetadze
<giorgitchankvetadze1997@xxxxxxxxx> wrote:
>
> scd30_i2c_cmd_lookup_tbl contains fixed opcodes and is
> only read by scd30_i2c_command(). Make it const to document that it's immutable
> and allow it to be placed in read-only memory.
>
> Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@xxxxxxxxx>
> ---
> drivers/iio/chemical/scd30_i2c.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
[snip]

Looks fine to me.

Acked-by: Maxwell Doose <m32285159@xxxxxxxxx>

best regards,
max