From: "Omar Yiğitcan Mengü via B4 Relay" <devnull+menguomary.gmail.com@kernel.org>
To: Parthiban Veerasooran <parthiban.veerasooran@microchip.com>,
Christian Gromm <christian.gromm@microchip.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev,
"Omar Yiğitcan Mengü" <menguomary@gmail.com>
Subject: [PATCH] staging: most: dim2: remove unused sysfs.h and struct medialb_bus
Date: Sun, 22 Nov 2026 00:34:01 +0300 [thread overview]
Message-ID: <20261122-dim2-remove-unused-sysfs-h-v1-1-369ee2d0e438@gmail.com> (raw)
From: Omar Yiğitcan Mengü <menguomary@gmail.com>
Commit 4d5f022f3a66 ("staging: most: remove proprietary kobjects")
stopped using struct medialb_bus and replaced it with struct device,
but left the unused bus member in struct dim2_hdm and its definition
in sysfs.h behind.
Later, commit 2ab189164056 ("staging: most: dim2: do not double-register
the same device") removed sysfs.c and all remaining declarations from
sysfs.h, leaving sysfs.h with only the unused struct medialb_bus
definition.
Remove the unused bus member from struct dim2_hdm, drop the sysfs.h
include from dim2.c, and delete sysfs.h.
Signed-off-by: Omar Yiğitcan Mengü <menguomary@gmail.com>
---
drivers/staging/most/dim2/dim2.c | 2 --
drivers/staging/most/dim2/sysfs.h | 19 -------------------
2 files changed, 21 deletions(-)
diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c
index 0e2512d16..06d5f17e0 100644
--- a/drivers/staging/most/dim2/dim2.c
+++ b/drivers/staging/most/dim2/dim2.c
@@ -20,7 +20,6 @@
#include <linux/of.h>
#include "hal.h"
#include "errors.h"
-#include "sysfs.h"
#define DMA_CHANNELS (32 - 1) /* channel 0 is a system channel */
@@ -93,7 +92,6 @@ struct dim2_hdm {
unsigned char mac_addrs[6];
unsigned char link_state;
int atx_idx;
- struct medialb_bus bus;
void (*on_netinfo)(struct most_interface *most_iface,
unsigned char link_state, unsigned char *addrs);
void (*disable_platform)(struct platform_device *pdev);
diff --git a/drivers/staging/most/dim2/sysfs.h b/drivers/staging/most/dim2/sysfs.h
deleted file mode 100644
index 60405cd47..000000000
--- a/drivers/staging/most/dim2/sysfs.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * MediaLB sysfs information
- *
- * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG
- */
-
-/* Author: Andrey Shvetsov <andrey.shvetsov@k2l.de> */
-
-#ifndef DIM2_SYSFS_H
-#define DIM2_SYSFS_H
-
-#include <linux/kobject.h>
-
-struct medialb_bus {
- struct kobject kobj_group;
-};
-
-#endif /* DIM2_SYSFS_H */
---
base-commit: 4f618bb81ea5403c0922bda75411c4669b8a4641
change-id: 20261122-dim2-remove-unused-sysfs-h-24acc8deded8
Best regards,
--
Omar Yiğitcan Mengü <menguomary@gmail.com>
reply other threads:[~2026-11-21 21:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261122-dim2-remove-unused-sysfs-h-v1-1-369ee2d0e438@gmail.com \
--to=devnull+menguomary.gmail.com@kernel.org \
--cc=christian.gromm@microchip.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=menguomary@gmail.com \
--cc=parthiban.veerasooran@microchip.com \
/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®