Commit fe5bd82f authored by Andy Shevchenko's avatar Andy Shevchenko

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Tested-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 6134b0be
...@@ -831,4 +831,5 @@ module_i2c_driver(ht16k33_driver); ...@@ -831,4 +831,5 @@ module_i2c_driver(ht16k33_driver);
MODULE_DESCRIPTION("Holtek HT16K33 driver"); MODULE_DESCRIPTION("Holtek HT16K33 driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(LINEDISP);
MODULE_AUTHOR("Robin van der Gracht <robin@protonic.nl>"); MODULE_AUTHOR("Robin van der Gracht <robin@protonic.nl>");
...@@ -298,3 +298,4 @@ module_platform_driver(img_ascii_lcd_driver); ...@@ -298,3 +298,4 @@ module_platform_driver(img_ascii_lcd_driver);
MODULE_DESCRIPTION("Imagination Technologies ASCII LCD Display"); MODULE_DESCRIPTION("Imagination Technologies ASCII LCD Display");
MODULE_AUTHOR("Paul Burton <paul.burton@mips.com>"); MODULE_AUTHOR("Paul Burton <paul.burton@mips.com>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(LINEDISP);
...@@ -263,7 +263,7 @@ int linedisp_register(struct linedisp *linedisp, struct device *parent, ...@@ -263,7 +263,7 @@ int linedisp_register(struct linedisp *linedisp, struct device *parent,
put_device(&linedisp->dev); put_device(&linedisp->dev);
return err; return err;
} }
EXPORT_SYMBOL_GPL(linedisp_register); EXPORT_SYMBOL_NS_GPL(linedisp_register, LINEDISP);
/** /**
* linedisp_unregister - unregister a character line display * linedisp_unregister - unregister a character line display
...@@ -276,6 +276,6 @@ void linedisp_unregister(struct linedisp *linedisp) ...@@ -276,6 +276,6 @@ void linedisp_unregister(struct linedisp *linedisp)
del_timer_sync(&linedisp->timer); del_timer_sync(&linedisp->timer);
put_device(&linedisp->dev); put_device(&linedisp->dev);
} }
EXPORT_SYMBOL_GPL(linedisp_unregister); EXPORT_SYMBOL_NS_GPL(linedisp_unregister, LINEDISP);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment