summaryrefslogtreecommitdiff
path: root/drivers/auxdisplay/line-display.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-02-12 20:01:39 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-02-15 14:31:21 +0300
commitfe5bd82f5941e44f31aec72f5b29a3253bbebe11 (patch)
tree4b287eea412324efa4e49eda7ae916f98c5d99ba /drivers/auxdisplay/line-display.c
parent6134b0be91f5d23a5000e5a0c3ee3d061bb4ad82 (diff)
downloadlinux-fe5bd82f5941e44f31aec72f5b29a3253bbebe11.tar.xz
auxdisplay: linedisp: Move exported symbols to a namespace
Avoid unnecessary pollution of the global symbol namespace by moving library functions in to a specific namespace and import that into the drivers that make use of the functions. For more info: https://lwn.net/Articles/760045/ Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Tested-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/auxdisplay/line-display.c')
-rw-r--r--drivers/auxdisplay/line-display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/auxdisplay/line-display.c b/drivers/auxdisplay/line-display.c
index a0339e4b5939..8d0ebdf0f10d 100644
--- a/drivers/auxdisplay/line-display.c
+++ b/drivers/auxdisplay/line-display.c
@@ -263,7 +263,7 @@ out_del_timer:
put_device(&linedisp->dev);
return err;
}
-EXPORT_SYMBOL_GPL(linedisp_register);
+EXPORT_SYMBOL_NS_GPL(linedisp_register, LINEDISP);
/**
* linedisp_unregister - unregister a character line display
@@ -276,6 +276,6 @@ void linedisp_unregister(struct linedisp *linedisp)
del_timer_sync(&linedisp->timer);
put_device(&linedisp->dev);
}
-EXPORT_SYMBOL_GPL(linedisp_unregister);
+EXPORT_SYMBOL_NS_GPL(linedisp_unregister, LINEDISP);
MODULE_LICENSE("GPL");