aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/core.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2024-06-07 16:00:13 +0000
committerUwe Kleine-König <[email protected]>2024-07-10 15:52:47 +0000
commit33c651a3fba9a3d380cb0e35ea207e048d39bed9 (patch)
tree6e369e9b41027f5eb5510183641393e10519e774 /drivers/pwm/core.c
parentpwm: add missing MODULE_DESCRIPTION() macros (diff)
downloadkernel-33c651a3fba9a3d380cb0e35ea207e048d39bed9.tar.gz
kernel-33c651a3fba9a3d380cb0e35ea207e048d39bed9.zip
pwm: Make use of a symbol namespace for the core
Define all pwm core's symbols in the namespace "PWM". The necessary module import statement is just added to the main header, this way every file that knows about the public functions automatically has this namespace available. Thanks to Biju Das for pointing out a cut'n'paste failure in my initial patch. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/core.c')
-rw-r--r--drivers/pwm/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index 18574857641e..604fd9bc8f22 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -6,6 +6,8 @@
* Copyright (C) 2011-2012 Avionic Design GmbH
*/
+#define DEFAULT_SYMBOL_NAMESPACE PWM
+
#include <linux/acpi.h>
#include <linux/module.h>
#include <linux/idr.h>