* [PATCH] staging: most: dim2: remove unused sysfs.h and struct medialb_bus
@ 2026-11-21 21:34 Omar Yiğitcan Mengü via B4 Relay
0 siblings, 0 replies; only message in thread
From: Omar Yiğitcan Mengü via B4 Relay @ 2026-11-21 21:34 UTC (permalink / raw)
To: Parthiban Veerasooran, Christian Gromm, Greg Kroah-Hartman
Cc: linux-kernel, linux-staging, Omar Yiğitcan Mengü
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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-21 21:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21 21:34 [PATCH] staging: most: dim2: remove unused sysfs.h and struct medialb_bus Omar Yiğitcan Mengü via B4 Relay
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®