Re: [PATCH 7/8] ACPI: property: Skip MIPI property table without "mipi-img" prefix

Andy Shevchenko
2023-01-17T15:30:15Z

On Tue, Jan 17, 2023 at 02:22:43PM +0200, Sakari Ailus wrote:
> For all _DSD properties, skip going through the MIPI DisCo for Imaging
> property name substitution table if the property doesn't have "mipi-img-"
> prefix.

...

> +#define MIPI_IMG_PREFIX "mipi-img-"

I don't think this is good for readability.

...

> + if (memcmp(elements[0].string.pointer, MIPI_IMG_PREFIX,
> + sizeof(MIPI_IMG_PREFIX) - 1))

str_has_prefix()

> + return;

--
With Best Regards,
Andy Shevchenko