Skip to content
Commit a448fcf1 authored by Marek Behún's avatar Marek Behún Committed by Pavel Machek
Browse files

leds: lm36274: don't iterate through children since there is only one



Do not use device_for_each_child_node. Since this driver works only with
once child node present, use device_get_next_child_node instead.
This also saves one level of indentation.

Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
Reviewed-by: default avatarDan Murphy <dmurphy@ti.com>
Tested-by: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent d3ab963c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment