Skip to content

Commit b94ca77

Browse files
committed
hwmon: (pmbus) Introduce PMBUS symbol namespace
Exported pmbus symbols are only supposed to be used from PMBus code. Introduce PMBUS symbol namespace to prevent misuse from other code. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 1e40633 commit b94ca77

36 files changed

Lines changed: 54 additions & 19 deletions

drivers/hwmon/pmbus/adm1266.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,3 +510,4 @@ module_i2c_driver(adm1266_driver);
510510
MODULE_AUTHOR("Alexandru Tachici <alexandru.tachici@analog.com>");
511511
MODULE_DESCRIPTION("PMBus driver for Analog Devices ADM1266");
512512
MODULE_LICENSE("GPL v2");
513+
MODULE_IMPORT_NS(PMBUS);

drivers/hwmon/pmbus/adm1275.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,3 +805,4 @@ module_i2c_driver(adm1275_driver);
805805
MODULE_AUTHOR("Guenter Roeck");
806806
MODULE_DESCRIPTION("PMBus driver for Analog Devices ADM1275 and compatibles");
807807
MODULE_LICENSE("GPL");
808+
MODULE_IMPORT_NS(PMBUS);

drivers/hwmon/pmbus/bel-pfe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,4 @@ module_i2c_driver(pfe_pmbus_driver);
129129
MODULE_AUTHOR("Tao Ren <rentao.bupt@gmail.com>");
130130
MODULE_DESCRIPTION("PMBus driver for BEL PFE Family Power Supplies");
131131
MODULE_LICENSE("GPL");
132+
MODULE_IMPORT_NS(PMBUS);

drivers/hwmon/pmbus/bpa-rs600.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,4 @@ module_i2c_driver(bpa_rs600_driver);
170170
MODULE_AUTHOR("Chris Packham");
171171
MODULE_DESCRIPTION("PMBus driver for BluTek BPA-RS600");
172172
MODULE_LICENSE("GPL");
173+
MODULE_IMPORT_NS(PMBUS);

drivers/hwmon/pmbus/fsp-3y.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,4 @@ module_i2c_driver(fsp3y_driver);
251251
MODULE_AUTHOR("Václav Kubernát");
252252
MODULE_DESCRIPTION("PMBus driver for FSP/3Y-Power power supplies");
253253
MODULE_LICENSE("GPL");
254+
MODULE_IMPORT_NS(PMBUS);

drivers/hwmon/pmbus/ibm-cffps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,3 +625,4 @@ module_i2c_driver(ibm_cffps_driver);
625625
MODULE_AUTHOR("Eddie James");
626626
MODULE_DESCRIPTION("PMBus driver for IBM Common Form Factor power supplies");
627627
MODULE_LICENSE("GPL");
628+
MODULE_IMPORT_NS(PMBUS);

drivers/hwmon/pmbus/inspur-ipsps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,4 @@ module_i2c_driver(ipsps_driver);
224224
MODULE_AUTHOR("John Wang");
225225
MODULE_DESCRIPTION("PMBus driver for Inspur Power System power supplies");
226226
MODULE_LICENSE("GPL");
227+
MODULE_IMPORT_NS(PMBUS);

drivers/hwmon/pmbus/ir35221.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,4 @@ module_i2c_driver(ir35221_driver);
145145
MODULE_AUTHOR("Samuel Mendoza-Jonas <sam@mendozajonas.com");
146146
MODULE_DESCRIPTION("PMBus driver for IR35221");
147147
MODULE_LICENSE("GPL");
148+
MODULE_IMPORT_NS(PMBUS);

drivers/hwmon/pmbus/ir36021.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,4 @@ module_i2c_driver(ir36021_driver);
7777
MODULE_AUTHOR("Chris Packham <chris.packham@alliedtelesis.co.nz>");
7878
MODULE_DESCRIPTION("PMBus driver for Infineon IR36021");
7979
MODULE_LICENSE("GPL");
80+
MODULE_IMPORT_NS(PMBUS);

drivers/hwmon/pmbus/ir38064.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ module_i2c_driver(ir38064_driver);
6161
MODULE_AUTHOR("Maxim Sloyko <maxims@google.com>");
6262
MODULE_DESCRIPTION("PMBus driver for Infineon IR38064");
6363
MODULE_LICENSE("GPL");
64+
MODULE_IMPORT_NS(PMBUS);

0 commit comments

Comments
 (0)