[PATCH v1 1/2] extcon: rt8973: Drop unused driver data
From: Uwe Kleine-König (The Capable Hub)
Date: Mon May 18 2026 - 07:03:17 EST
The .driver_data member isn't used in this driver, so the explicit
assignment can safely be dropped. Also drop the enum after its only user
is gone.
While touching this i2c_device_id array, assign .name using a named
initializer which makes it easier to understand and more robust to
changes in the definition of struct i2c_device_id.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/extcon/extcon-rt8973a.c | 2 +-
drivers/extcon/extcon-rt8973a.h | 4 ----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/extcon/extcon-rt8973a.c b/drivers/extcon/extcon-rt8973a.c
index 19bb49f13fb0..dfeedb295c51 100644
--- a/drivers/extcon/extcon-rt8973a.c
+++ b/drivers/extcon/extcon-rt8973a.c
@@ -684,7 +684,7 @@ static SIMPLE_DEV_PM_OPS(rt8973a_muic_pm_ops,
rt8973a_muic_suspend, rt8973a_muic_resume);
static const struct i2c_device_id rt8973a_i2c_id[] = {
- { "rt8973a", TYPE_RT8973A },
+ { .name = "rt8973a" },
{ }
};
MODULE_DEVICE_TABLE(i2c, rt8973a_i2c_id);
diff --git a/drivers/extcon/extcon-rt8973a.h b/drivers/extcon/extcon-rt8973a.h
index 0d0d69fcac92..039af2d1cac6 100644
--- a/drivers/extcon/extcon-rt8973a.h
+++ b/drivers/extcon/extcon-rt8973a.h
@@ -8,10 +8,6 @@
#ifndef __LINUX_EXTCON_RT8973A_H
#define __LINUX_EXTCON_RT8973A_H
-enum rt8973a_types {
- TYPE_RT8973A,
-};
-
/* RT8973A registers */
enum rt8973A_reg {
RT8973A_REG_DEVICE_ID = 0x1,
--
2.47.3