mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rahul Kumar <rk0006818@gmail.com>
To: liviu.dudau@arm.com, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com,
	simona@ffwll.ch
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	rk0006818@gmail.com
Subject: [PATCH v2 1/3] drm/komeda: Add komeda_drv.h to make struct komeda_drv available
Date: Tue, 18 Nov 2025 16:29:32 +0530	[thread overview]
Message-ID: <20251118105934.748955-2-rk0006818@gmail.com> (raw)
In-Reply-To: <20251118105934.748955-1-rk0006818@gmail.com>

struct komeda_drv was defined only inside komeda_drv.c and not visible
to other Komeda components. Add a new header file, komeda_drv.h, to
make this structure available across the driver.

Signed-off-by: Rahul Kumar <rk0006818@gmail.com>
---
 .../gpu/drm/arm/display/komeda/komeda_drv.c   |  6 +----
 .../gpu/drm/arm/display/komeda/komeda_drv.h   | 24 +++++++++++++++++++
 2 files changed, 25 insertions(+), 5 deletions(-)
 create mode 100644 drivers/gpu/drm/arm/display/komeda/komeda_drv.h

diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
index 358c1512b087..aff3cf1f134b 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
@@ -14,11 +14,7 @@
 #include <drm/drm_of.h>
 #include "komeda_dev.h"
 #include "komeda_kms.h"
-
-struct komeda_drv {
-	struct komeda_dev *mdev;
-	struct komeda_kms_dev *kms;
-};
+#include "komeda_drv.h"
 
 struct komeda_dev *dev_to_mdev(struct device *dev)
 {
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.h b/drivers/gpu/drm/arm/display/komeda/komeda_drv.h
new file mode 100644
index 000000000000..b105255a798c
--- /dev/null
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Komeda top-level driver structure
+ *
+ * (C) COPYRIGHT 2025 Rahul Kumar <rk0006818@gmail.com>
+ */
+#ifndef _KOMEDA_DRV_H_
+#define _KOMEDA_DRV_H_
+
+#include "komeda_dev.h"
+#include "komeda_kms.h"
+
+/**
+ * struct komeda_drv - Komeda high-level driver glue
+ *
+ * This structure links the core Komeda hardware device (struct komeda_dev)
+ * with the DRM/KMS integration layer (struct komeda_kms_dev).
+ */
+struct komeda_drv {
+	struct komeda_dev     *mdev;
+	struct komeda_kms_dev *kms;
+};
+
+#endif /* !_KOMEDA_DRV_H_ */
-- 
2.43.0


  reply	other threads:[~2025-11-18 11:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-18 10:59 [PATCH v2 0/3] drm/komeda: Convert logging to drm_* helpers Rahul Kumar
2025-11-18 10:59 ` Rahul Kumar [this message]
2025-11-18 10:59 ` [PATCH v2 2/3] drm/komeda: Convert logging in komeda_pipeline.c to drm_* with drm_device parameter Rahul Kumar
2025-11-18 10:59 ` [PATCH v2 3/3] drm/komeda: Convert logging in d71_dev.c " Rahul Kumar
2025-11-25  6:45   ` Rahul Kumar
2025-12-02 13:33     ` Liviu Dudau
2025-12-02 13:43       ` Rahul Kumar
2025-12-10 16:47 ` [PATCH v2 0/3] drm/komeda: Convert logging to drm_* helpers Liviu Dudau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251118105934.748955-2-rk0006818@gmail.com \
    --to=rk0006818@gmail.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liviu.dudau@arm.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®