Re: [PATCH leds + devicetree 11/13] leds: tca6507: fail on reg value conflict

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

 



Hi!

>  		if (fwnode_property_match_string(child, "compatible",
>  						 "gpio") >= 0) {
>  			gpio_bitmap |= BIT(reg);
>  			continue;
> +		} else {
> +			led_bitmap |= BIT(reg);
>  		}
>  

You have "continue" above, so you don't really need the else branch.

Thanks,
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux