Re: [PATCH] checks: Detect cascoda,ca8210 extclock-gpio false-positive

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

 



Hi all,

On Tue, Jul 24, 2018 at 11:09:40AM -0700, Paul Burton wrote:
> @@ -1273,6 +1274,21 @@ static bool prop_is_gpio(struct property *prop)
>  	if (!(streq(str, "gpios") || streq(str, "gpio")))
>  		return false;
>  
> +	/*
> +	 * *-gpios and *-gpio can appear in property names,
> +	 * so skip over any false matches.
> +	 */
> +	for (i = 0; i < ARRAY_SIZE(false_positives); i++) {
> +		if (strstr(prop->name, false_positives[i].prop))
> +			return false;

Of course as soon as I hit send I noticed this is strstr(), not
strcmp(), and this probably doesn't make much sense... Please ignore.

Thanks,
    Paul




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux