From nobody Tue Jun 13 07:49:16 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QgLKm62Prz4cpW4; Tue, 13 Jun 2023 07:49:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QgLKm5dhsz489D; Tue, 13 Jun 2023 07:49:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686642556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VPllaN6zfjztKyj/my3myWZpXpa30anCQW6NKKPAkSM=; b=RUvbiYKBI1Wte0IXGvTy5mHYMltQ9AyBsbfM0QODD2bzuBcpD7isVaIFCrfkwPbcRO009l 5hJjhZlBMMYZAf1GDWF7IabF6DJCDyVtTEioJK9/8eiuFA3C1kygX2AeF+Z7JSHFrw1bdl HDU4VcopGsRCApSQ5Ob1WldkQ1zS+cdFYVT+EMZV2IBNbUL4lshobPcOyuaAUNu6tWwUs0 gWcVeAsJX62wmO/rNfStvxkILUtQ82Q8yffep8LYwMqUNmNWaclo/pehSEzMX68A45zOYI CxQmu19W7l6VuPrDmP7v18fAPd+mSRAwvUVVZvRrEOmf1/aiX9zwrN9oFgAE6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686642556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VPllaN6zfjztKyj/my3myWZpXpa30anCQW6NKKPAkSM=; b=oSzLm5HQGHZc5C2ztvQ70V9N76whSIadrfDuJnW0QBixfzPKgzIJty/DNA0uo52n3Pw/bC C1d9MGecwPRZJ+Zph+5XGf6ZDX4ClLMzSNK0eswPC/luL4sozDqDYOm22E7BVm8rTcuQ5p 7U02xzHTCWzbVedfxO9VCWz/75eq+pVaCQpfz7BtLyC0Cyq2b/nb14FZz2KQ5xNahfm9s0 PqFhfcyzhDFNl83MWOmRDhX/imx9byz7J9kkCHAa/EUulc6zNrP9M2QPFYXc0F2eEnVjno rtVReahgp7TfjEeW0vYTBl/GL/WlGHhMIUynnJarznFfD2DNYnHrsgGKjh6tbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686642556; a=rsa-sha256; cv=none; b=rO7fpR1wD49wjVowLFp2xtKtwtFRJoWeWiRwx1xqjlo97/yWo65h+zGx2Lzjjwb2DBRVy3 otQwJ+MlAvCePzA4AfoYsVGd1llN2nycdXpTUH7Xive+Pf3VrtAktdr0o1K/58wVlzYgCh 8KUsJV4j/FCyBjgMYvXWZKxccZ5S19mG2J4pzK1Ry+JswJzDpzJEVO//1MrlT8861CE1sp ua1ItS/NcEK3/aLDyn0ASJFO5f2q4NvB8NNfu8Y8G9D1Zl6iLEuvMHkIScl2l5PquFw75i ShJfBPhpQQV6nzHoQYGE7Vz59OwD471dUfUQufNjgRLg8YN5mhW3lNbiHq+Nvw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QgLKm4hDbzF4m; Tue, 13 Jun 2023 07:49:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35D7nGkA064827; Tue, 13 Jun 2023 07:49:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35D7nG84064826; Tue, 13 Jun 2023 07:49:16 GMT (envelope-from git) Date: Tue, 13 Jun 2023 07:49:16 GMT Message-Id: <202306130749.35D7nG84064826@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Corvin=20K=C3=B6hne?= Subject: git: 740d76544ad8 - main - linuxkpi: advance platform_device List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: corvink X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 740d76544ad8a59f1be53584a0aa5bbbe00833ee Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by corvink: URL: https://cgit.FreeBSD.org/src/commit/?id=740d76544ad8a59f1be53584a0aa5bbbe00833ee commit 740d76544ad8a59f1be53584a0aa5bbbe00833ee Author: Corvin Köhne AuthorDate: 2023-01-31 08:18:38 +0000 Commit: Corvin Köhne CommitDate: 2023-06-13 07:49:01 +0000 linuxkpi: advance platform_device These are required by some linux driver like: https://github.com/beckhoff/bbapi Reviewed by: manu MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39554 --- sys/compat/linuxkpi/common/include/linux/platform_device.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/platform_device.h b/sys/compat/linuxkpi/common/include/linux/platform_device.h index f45cdce829c4..0d7aebfa4037 100644 --- a/sys/compat/linuxkpi/common/include/linux/platform_device.h +++ b/sys/compat/linuxkpi/common/include/linux/platform_device.h @@ -34,6 +34,9 @@ #include struct platform_device { + const char *name; + int id; + bool id_auto; struct device dev; }; @@ -78,6 +81,13 @@ platform_driver_unregister(struct platform_driver *pdrv) return; } +static __inline int +platform_device_register(struct platform_device *pdev) +{ + pr_debug("%s: TODO\n", __func__); + return (0); +} + static __inline void platform_device_unregister(struct platform_device *pdev) {