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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux