From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 610203B9D8D for ; Sun, 28 Jun 2026 21:59:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782683996; cv=none; b=P0rolhsdrA/LzJD83uSHOS1/g1M28mKYCGj484KqSldA4VotMpNp7kC/uYZL3DUjm2LuNRenoJUtBzA+5olJFyuCMYBdfQfK7GyjSPOFvmUGQYBFYaQ0liWM7xwsMb3Rpz2jdzltF43RoYaUp8TUi1zNnhzt54zEOHUiWJJNh8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782683996; c=relaxed/simple; bh=HmtDeSdq493O/TTyQucYvZUjP9hWxefLDw1nVr+GZys=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pQz+mOUxycy7S9irkXL1Do+UkJno3LWOpOLdjad8o0jZJf+e10lkCbimSQu0flqxum76Ler1SgnzfN952di+7wF4uziAUrtXJSwJMYeVH3ZqQTpL0JmGHmQZKGNxmxGpDaJy9TAMeU8PIobMaT2tdcr9phiOG5GUlLLC+UHJ9Rc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=UBOFI6g+; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="UBOFI6g+" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4926fe5be4bso18518235e9.0 for ; Sun, 28 Jun 2026 14:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1782683993; x=1783288793; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZWxWFM5v758J0AN3Uh4oEm+n6LawY3BEHgzsygOul+E=; b=UBOFI6g+zn3gPK0gN0sB9NkelSLi1a+4Lu0MaCX5HfypppRYA0d2thlBP/Zou69A45 9E/D665YgHquN7e0ffDjdaCv82oq4Ihr8hG+R+4K3bZabV31N//rqEaSwMvxPRoI6W36 kqq3si8iSfuHa2JyZHxFej84lqZwKHyWgDoMUr0Uc4FWNUpEQEqjppTeWNEl5D7j7qTZ +dgZsPh4Uj3Rjlz76iRrfAZkuY6/p84IAwwxxDaPXpX+JmEOyXSIRjFwgAAYBevCfbxK COtQPQwCzGUxRr/LIl2mP6CWJjG6JDyxrQbbZqiRQzn4hk3K4e3COBIHmVxX+Lo7PGoE 2Y0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782683993; x=1783288793; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ZWxWFM5v758J0AN3Uh4oEm+n6LawY3BEHgzsygOul+E=; b=BoPHaF+05sifVUg4DBn4wrJ69h5gfzKD6L4MPRLN58tpD9GTxDuu+5VfV+ip6qIBkl vrDdYuaNvPzu8zotwz6n8fdpViYO8ws5U+viBFcfonJna+7UEgzzaYa1b5tHNy97MTPe cNfK2LzZvOzk1+2PVkdtRFo0RBb4YoHWodSN+i2V8iedOnmKlAFZyBUN9rNvxZYoExjV SlE/60l47vV53P/Ly/NdSEYUhkI4ZmE+FewWqGyHUY6BPQQiIEXofIjBbKd5dHGtuczm KaWfwosQbxKhgyydJSQa/dmL+2OIcvQaWmxiR6IkPIJeKxizQYI6WG3QBvszwEaUKsTg T0dw== X-Forwarded-Encrypted: i=1; AFNElJ+wo+IKE2MbsXAcM3G9Lp6HPdFj6eBO4Zq8+BxJudZqWwUNUALxwJMM7ygWawpTr/e832w88bCqRv4rwjs=@vger.kernel.org X-Gm-Message-State: AOJu0YyPYuIYfwW9fpEUXXLrSullTS/7eLCOHQrYA0Xg/dxvHB7WFjjZ 6o+JsSINdit9Tif3AhivYzXF1gszpF/kywoa8Dwg8pVoDK685YSFwoUPOHln8VF78EI= X-Gm-Gg: AfdE7cnY0zdn99SZaadcyHe+TcPS4VgrmaETrd0LbmtxsabWk7BKHmSCNKJC9gZrbgn I4ysckSOaHsEtTiiwcvveLycVksmOMaGaNjgSbAeEOtS/2HjtHxwZ18KMJLCFCphRwcdXdGqY9Y zujyIIavD0HdljWnTTurN2RxcF3B4lDaIrMHoC2HrcZ0Ph4PfiGwljtPIiDCiFUGLkdMhhyrgxw DENVFrDfMMEsPWKhiKWFxw9ZS1H5WAgHCWLKEZewHkc8H5xC1XfTGIAljTkMOJR0pPODhN5OvUA Zyt2iLyQ4ZAWnBysHySWwAj8TLHBjyZrGnQlR+jcPBo5A0KpcQVGfb15blAyzLw8uXMkC5y8Phz WFIw+wYOEQ1ap1RFbTpfNtxJJFF7sBivDMhjG0rgGQ2ukDJnts3gGug28zkvUHFmGCmdNC3QkA7 ZCmOiAT8+4+4FW560VOA== X-Received: by 2002:a05:600c:4e45:b0:492:4948:bfce with SMTP id 5b1f17b1804b1-4926fc45f89mr136779815e9.16.1782683992906; Sun, 28 Jun 2026 14:59:52 -0700 (PDT) Received: from localhost ([2a02:8071:56d1:2de0:559d:eec2:887f:c200]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-49271c1bb11sm160759265e9.4.2026.06.28.14.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2026 14:59:52 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Linus Torvalds , Greg Kroah-Hartman Cc: Danilo Krummrich , Jonathan Cameron , Dmitry Torokhov , Bartosz Golaszewski , Pei Xiao , Shashank Balaji , Ben Horgan , linux-kernel@vger.kernel.org Subject: [PATCH v3 04/16] driver core: platform: Include header for struct platform_device_id Date: Sun, 28 Jun 2026 23:58:39 +0200 Message-ID: <21040db411168fe1dac212c358603062f877e42f.1782682124.git.ukleinek@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1517; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=HmtDeSdq493O/TTyQucYvZUjP9hWxefLDw1nVr+GZys=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqQZkWKTB5osYuMfYJnkcVozkKr31Uoqgdn+fLL w6aH5MzH6KJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCakGZFgAKCRCPgPtYfRL+ TpU/CACt3X/KT9WatrI65dWSFmkdJZVdbjyNW4zkykaMqhb+cVsBBoLPXPRtlZfHVxkRjbOjx4w OJUjXAByoo0mZLRSLHoy9Q5vtEoND147DaNB4TMZ6JtunumBoJuT3jXct9Z9X24qoNppG/3iWAv ltWXGMDC+l671ZOz1k8ydMv2B9YJmSRT27i85ZxWLdPaWwCsipq5c1xmobZsBv/eFMIL72dY6om JS6AkSxCWTRqD+bYbbyJD/luLZZbQG8JTxv7ig3WnIRK7gjAM9vQXbE8cVeWx82PQUdAPI10C4A AeipLLvzj/5KFq8vzLln9MDXCBFt9KHBKBTFfwTqf/0s8hLg X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit Platform drivers can define an array containing the supported device variants to be assigned to the struct platform_driver's .id_table. While a forward declaration of struct platform_device_id is technically enough to make the driver self-contained, it's reasonable to provide the (very lightweight) data type definition for that array in to not add that burden to all platform drivers with an id-table. Note that currently transitively includes that provides struct platform_device_id. But that include is planned to be replaced by a tighter set of includes that only define the structures relevant for the stuff in . Acked-by: Danilo Krummrich Signed-off-by: Uwe Kleine-König (The Capable Hub) --- include/linux/platform_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 26e6a43358e2..8c566f09d04e 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -11,6 +11,7 @@ #define _PLATFORM_DEVICE_H_ #include +#include #define PLATFORM_DEVID_NONE (-1) #define PLATFORM_DEVID_AUTO (-2) @@ -18,7 +19,6 @@ struct irq_affinity; struct mfd_cell; struct property_entry; -struct platform_device_id; struct platform_device { const char *name; -- 2.47.3