Re: [PATCH 3/3] iio: chemical: scd30: make command lookup table const
From: Andy Shevchenko
Date: Sun May 10 2026 - 03:23:06 EST
On Sat, May 09, 2026 at 04:16:33PM +0500, Stepan Ionichev wrote:
> scd30_i2c_cmd_lookup_tbl[] holds the fixed CMD_* opcodes and is only
> ever read in scd30_i2c_command() (via put_unaligned_be16 of the looked
> up entry). Marking it const matches how it is used and lets the table
> land in .rodata.
I believe the above is the suggestion on the correction of the commit message?
Please, make it clear!
> Reviewed-by: Stepan Ionichev <sozdayvek@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko