Skip to content

Commit

Permalink
pinctrl: fix a minor harmless typo
Browse files Browse the repository at this point in the history
The way the for_each_maps() macro is currently used, using "i" instead of
"_i_" works and is harmless. Still, this is a bug, that can trigger any
time, if the code around that macro changes. Better fix it now.

Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Guennadi Liakhovetski authored and Linus Walleij committed Jun 4, 2012
1 parent 1253585 commit bc66468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static LIST_HEAD(pinctrl_maps);
list_for_each_entry(_maps_node_, &pinctrl_maps, node) \
for (_i_ = 0, _map_ = &_maps_node_->maps[_i_]; \
_i_ < _maps_node_->num_maps; \
i++, _map_ = &_maps_node_->maps[_i_])
_i_++, _map_ = &_maps_node_->maps[_i_])

/**
* pinctrl_provide_dummies() - indicate if pinctrl provides dummy state support
Expand Down

0 comments on commit bc66468

Please sign in to comment.