From: Uwe Kleine-König Date: Fri, 7 Jun 2024 16:00:13 +0000 (+0200) Subject: pwm: Make use of a symbol namespace for the core X-Git-Tag: v6.11-rc1~211^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33c651a3fba9a3d380cb0e35ea207e048d39bed9;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20240607160012.1206874-2-u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 18574857641ed..604fd9bc8f223 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 #include #include diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 60b92c2c75ef0..812c550de60c2 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -4,9 +4,12 @@ #include #include +#include #include #include +MODULE_IMPORT_NS(PWM); + struct pwm_chip; /**