From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sun, 23 Apr 2017 21:39:00 -0600 Subject: [U-Boot] [PATCH v5 05/14] cmd: cpu: refactor to ensure devices are probed and improve code style In-Reply-To: <1492937036-31171-6-git-send-email-noltari@gmail.com> References: <1492937036-31171-1-git-send-email-noltari@gmail.com> <1492937036-31171-6-git-send-email-noltari@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 23 April 2017 at 02:43, Álvaro Fernández Rojas wrote: > Use uclass_first_device and uclass_next_device in order to avoid exceptions > for drivers that aren't probed when cpu ops are requested. > Improve code style and fix indentations. > Fix incorrect line break when cpu info is not available. > Remove unneeded brackets. > > Signed-off-by: Álvaro Fernández Rojas > --- > v5: No changes. > v4: Refactor code to use uclass_first_device and uclass_next_device as > requested by Simon Glass. > v3: add new patch to ensure that device is probed. > > cmd/cpu.c | 30 +++++++++++++----------------- > 1 file changed, 13 insertions(+), 17 deletions(-) Reviewed-by: Simon Glass