summaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-27 18:03:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-27 18:24:29 +0200
commit5c9a27df4eb9a402770d5547af255a765e1c10ac (patch)
treeba4a90753b9a68096d46c691d1b880cc8225f2e4 /drivers/base/base.h
parentdevice property: Remove unused struct net_device forward declaration (diff)
downloadlinux-5c9a27df4eb9a402770d5547af255a765e1c10ac.tar.xz
linux-5c9a27df4eb9a402770d5547af255a765e1c10ac.zip
driver core: move sysfs_dev_char_kobj out of class.h
The structure sysfs_dev_char_kobj is local only to the driver core code, so move it out of the global class.h file and into the internal base.h file as no one else should be touching this symbol. Acked-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20230327160319.513974-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r--drivers/base/base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h
index d3e081dc4b13..2867ca4ee4ce 100644
--- a/drivers/base/base.h
+++ b/drivers/base/base.h
@@ -189,6 +189,9 @@ const char *device_get_devnode(const struct device *dev, umode_t *mode,
extern struct kset *devices_kset;
void devices_kset_move_last(struct device *dev);
+/* /sys/dev/char directory */
+extern struct kobject *sysfs_dev_char_kobj;
+
#if defined(CONFIG_MODULES) && defined(CONFIG_SYSFS)
void module_add_driver(struct module *mod, struct device_driver *drv);
void module_remove_driver(struct device_driver *drv);