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

Andy Shevchenko
2023-01-23T15:28:00Z

On Mon, Jan 23, 2023 at 03:46:16PM +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.

...

> - { "mipi-img-lens-focus", "lens-focus" },
> - { "mipi-img-flash-leds", "flash-leds" },
> - { "mipi-img-clock-frequency", "clock-frequency" },
> - { "mipi-img-led-max-current", "led-max-microamp" },
> - { "mipi-img-flash-max-current", "flash-max-microamp" },
> - { "mipi-img-flash-max-timeout", "flash-max-timeout-us" },
> + { MIPI_IMG_PREFIX "lens-focus", "lens-focus" },
> + { MIPI_IMG_PREFIX "flash-leds", "flash-leds" },
> + { MIPI_IMG_PREFIX "clock-frequency", "clock-frequency" },
> + { MIPI_IMG_PREFIX "led-max-current", "led-max-microamp" },
> + { MIPI_IMG_PREFIX "flash-max-current", "flash-max-microamp" },
> + { MIPI_IMG_PREFIX "flash-max-timeout", "flash-max-timeout-us" },

I don't thing it ads to the readability, so I don't know why this (part of the)
change is needed.

--
With Best Regards,
Andy Shevchenko