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
--
To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux