From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52C60C433FE for ; Thu, 29 Sep 2022 10:01:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 92C0084D69; Thu, 29 Sep 2022 12:01:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="I0c2r6Wc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F031C84B2B; Thu, 29 Sep 2022 12:00:49 +0200 (CEST) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EC79084C81 for ; Thu, 29 Sep 2022 12:00:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-wm1-x330.google.com with SMTP id k3-20020a05600c1c8300b003b4fa1a85f8so463607wms.3 for ; Thu, 29 Sep 2022 03:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=WvZNg40B6dCkDiAeXxyHbWSFR2yKKwcnfkX25Ahk4As=; b=I0c2r6WcDrp9qchLKflFwMl8qzMUM7pt8blIGQRzbvMP6+7cBemmo4gnzpxHORKVKV yjen5jnI933sEsMeFBvg60B7gIYZs96+TUUytqvlGslIGQcht1s+UzXvYc3Wuc7ah3AR Wvz1zyaDEQBTpau2r5KRYHDoFtzCSjITFp4MU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=WvZNg40B6dCkDiAeXxyHbWSFR2yKKwcnfkX25Ahk4As=; b=MnYHaCOdAwzxgLHjdWJSLym7TUy631yIAgW9moMzaqhZEBw8I4dNb5mmpU1FEg+20v 5h1LBKWovYkk28ePq2mKeFjeQiaBppiFlIohO8rlepYCq2f0h5Dnk4mRerp81gaSCAEn puFBCRZDwFEhI6LnbaRUH4aODNY1uYwUduuDj6DWB3WdPdLhGlolyNGUez9eG5sWw2Zx NrwNGbkztNs7OsIO10Ruq3dwJv+bwWIm/0b0e7JwzL5EIeSOHKg/7NtBToaVq3xt0jc/ cr4y+6AI+2DBnBbuX7+YHFmhMtjWwJHt/5wF96ehwOI9gA+wWHfcbhLqFuqbclFWUtrb rluQ== X-Gm-Message-State: ACrzQf1VXiVXpOmTKxXiXCW3Z1BVRYnrPR1kWY62N3oN4TR24a399aNm M1WqrNEAqgyp67s0ErPOd72D6AjTiG3Dggrsq3sbYQ== X-Google-Smtp-Source: AMsMyM5UUScszlBydYUz6/rvPLdqEsmG1QuWnVBc1aBnf70hzTDXLXvz7oBuUSJ7XHanRoeYpJNsuqG99LkDSXbB5Vw= X-Received: by 2002:a7b:cc99:0:b0:3b4:76f2:192b with SMTP id p25-20020a7bcc99000000b003b476f2192bmr10204222wma.138.1664445642313; Thu, 29 Sep 2022 03:00:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Simon Glass Date: Thu, 29 Sep 2022 04:00:30 -0600 Message-ID: Subject: Re: [PATCH v5 02/15] dm: treewide: Do not opencode uclass_probe_all() To: Michal Suchanek Cc: U-Boot Mailing List , Bin Meng , Ovidiu Panait , Michal Simek , Heinrich Schuchardt Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Tue, 27 Sept 2022 at 15:38, Michal Suchanek wrote: > > We already have a function for probing all devices of a specific class, > use it. > > Signed-off-by: Michal Suchanek > --- > drivers/cpu/cpu-uclass.c | 20 ++++---------------- > drivers/virtio/virtio-uclass.c | 15 +-------------- > test/dm/core.c | 17 +++-------------- > test/test-main.c | 11 +---------- > 4 files changed, 9 insertions(+), 54 deletions(-) Reviewed-by: Simon Glass