mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
iio:accel:bmc150: Move exports into IIO_BMC150 namespace
To avoid unnecessary pollution of the global symbol namespace move the driver core exports into their own namespace and import that into the two bus modules. For more info see https://lwn.net/Articles/760045/ Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20220116180535.2367780-10-jic23@kernel.org
This commit is contained in:
parent
489c75af0f
commit
26b74d852f
@ -203,7 +203,7 @@ const struct regmap_config bmc150_regmap_conf = {
|
||||
.val_bits = 8,
|
||||
.max_register = 0x3f,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(bmc150_regmap_conf);
|
||||
EXPORT_SYMBOL_NS_GPL(bmc150_regmap_conf, IIO_BMC150);
|
||||
|
||||
static int bmc150_accel_set_mode(struct bmc150_accel_data *data,
|
||||
enum bmc150_power_modes mode,
|
||||
@ -1798,7 +1798,7 @@ err_disable_regulators:
|
||||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(bmc150_accel_core_probe);
|
||||
EXPORT_SYMBOL_NS_GPL(bmc150_accel_core_probe, IIO_BMC150);
|
||||
|
||||
void bmc150_accel_core_remove(struct device *dev)
|
||||
{
|
||||
@ -1821,7 +1821,7 @@ void bmc150_accel_core_remove(struct device *dev)
|
||||
regulator_bulk_disable(ARRAY_SIZE(data->regulators),
|
||||
data->regulators);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(bmc150_accel_core_remove);
|
||||
EXPORT_SYMBOL_NS_GPL(bmc150_accel_core_remove, IIO_BMC150);
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
static int bmc150_accel_suspend(struct device *dev)
|
||||
@ -1896,7 +1896,7 @@ const struct dev_pm_ops bmc150_accel_pm_ops = {
|
||||
SET_RUNTIME_PM_OPS(bmc150_accel_runtime_suspend,
|
||||
bmc150_accel_runtime_resume, NULL)
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(bmc150_accel_pm_ops);
|
||||
EXPORT_SYMBOL_NS_GPL(bmc150_accel_pm_ops, IIO_BMC150);
|
||||
|
||||
MODULE_AUTHOR("Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
@ -280,3 +280,4 @@ module_i2c_driver(bmc150_accel_driver);
|
||||
MODULE_AUTHOR("Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("BMC150 I2C accelerometer driver");
|
||||
MODULE_IMPORT_NS(IIO_BMC150);
|
||||
|
@ -84,3 +84,4 @@ module_spi_driver(bmc150_accel_driver);
|
||||
MODULE_AUTHOR("Markus Pargmann <mpa@pengutronix.de>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("BMC150 SPI accelerometer driver");
|
||||
MODULE_IMPORT_NS(IIO_BMC150);
|
||||
|
Loading…
Reference in New Issue
Block a user