summaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-31 11:33:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-31 17:45:18 +0200
commit980c05616e5d554c46176fe08b5601801f2f8192 (patch)
treee6773386d22a31bfac11ccc6152152fe2b9732a8 /drivers/base/base.h
parentdriver core: make sysfs_dev_block_kobj static (diff)
downloadlinux-980c05616e5d554c46176fe08b5601801f2f8192.tar.xz
linux-980c05616e5d554c46176fe08b5601801f2f8192.zip
driver core: make sysfs_dev_char_kobj static
Nothing outside of drivers/base/core.c uses sysfs_dev_char_kobj, so make it static and document what it is used for so we remember it the next time we touch it 15 years from now. Acked-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20230331093318.82288-7-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, 0 insertions, 3 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h
index 4660e1159ee0..e96f3343fd7c 100644
--- a/drivers/base/base.h
+++ b/drivers/base/base.h
@@ -191,9 +191,6 @@ 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);