From patchwork Sat Oct 3 15:25:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1376282 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=VliJQZ4r; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C3W1J0f6Sz9s1t for ; Sun, 4 Oct 2020 01:26:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0646682390; Sat, 3 Oct 2020 17:26:06 +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="VliJQZ4r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A7F0082353; Sat, 3 Oct 2020 17:26:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 D948A8233E for ; Sat, 3 Oct 2020 17:25:57 +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@chromium.org Received: by mail-il1-x142.google.com with SMTP id c5so3346750ilr.9 for ; Sat, 03 Oct 2020 08:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Y9F2KOzQOehYYruw8dch7WX7BdZ+o2UU9pgZ+g8O86g=; b=VliJQZ4rQqZs4o+v/xjZhII6OVQ1SqMSmSkYQfvwHLhDLV/tMVNrvueqi0l+iSQNvx gTUjt2fYJHQV7ogsK5ohTNOZfvMnkruqKUjv80qfYuAMWFhOmgSzM86nd4Erao/tV+R+ XpVnkcPoY8RHHdkbn8GkjbwWI34UYFGb39crw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y9F2KOzQOehYYruw8dch7WX7BdZ+o2UU9pgZ+g8O86g=; b=UHPCHJEfwMgSdCWrIBZW1gyr+2Hh8gCzE3VoAq2Ru1mhyx2iCnaKK6FOWoFacpIu4N ccXZJvbgC2frehNQZKx/hb3xk5XxR9jmhoEj72rbUZaJgstvafq8N3Psxe1l7QYDws9e j6yFTkMaKuieV84uAmdibS295lqVk9vIkgVnY4F0LKGGP2b0fFBpS/LoHdYnFNgO7WLN 8XzXQHulhrNCP32C21AlKJnGJ0zdI5z89IvuqYMQtH31sU2UlV4hM7oM4gUqFNeqGjGr ffaHAWFOO44Dd3dm3e+CR4GAE1l5A1C3Y5Tx5txzFEAya7iOGmrUFds5fTSaf0fJeKav 4OqA== X-Gm-Message-State: AOAM5337auRhhx7F1o2rGZW/xRmwMXCcrbVZqWlG4bUZLWK7dRsWnFK2 GbTQp76/B0AE1g2JaHQ/+3wNc+NwrIceSIH1 X-Google-Smtp-Source: ABdhPJwFrrvK76LO+527Ko9tlFekaPK4cacvBpdGBG/62VTxFod1cQzoMX4uvTCz27NQ3wrU5lA7Qg== X-Received: by 2002:a92:cc41:: with SMTP id t1mr6059030ilq.19.1601738756711; Sat, 03 Oct 2020 08:25:56 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id l77sm2099558ill.4.2020.10.03.08.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Oct 2020 08:25:56 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Marek Vasut , Pavel Herrmann Subject: [PATCH 04/17] dm: core: Avoid void * in the of-platdata structs Date: Sat, 3 Oct 2020 09:25:21 -0600 Message-Id: <20201003152534.3184504-5-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.806.g8561365e88-goog In-Reply-To: <20201003152534.3184504-1-sjg@chromium.org> References: <20201003152534.3184504-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean These pointers point to drivers. Update the definition to make this clear. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- include/dt-structs.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/dt-structs.h b/include/dt-structs.h index 924d51fc522..eed8273d18e 100644 --- a/include/dt-structs.h +++ b/include/dt-structs.h @@ -8,18 +8,20 @@ /* These structures may only be used in SPL */ #if CONFIG_IS_ENABLED(OF_PLATDATA) +struct driver_info; + struct phandle_0_arg { - const void *node; + const struct driver_info *node; int arg[0]; }; struct phandle_1_arg { - const void *node; + const struct driver_info *node; int arg[1]; }; struct phandle_2_arg { - const void *node; + const struct driver_info *node; int arg[2]; }; #include