diff options
author | Linus Walleij | 2016-06-30 03:48:50 +0200 |
---|---|---|
committer | Jonathan Cameron | 2016-07-03 11:27:14 +0100 |
commit | 17118843a563c681aaafb29621befba02f28c592 (patch) | |
tree | b54dbe176ad9432f92122f0a55b60be390238f0d /drivers/iio/pressure/bmp280-regmap.c | |
parent | 14e8015f8569d9634479a4a461e7c138d60d99ca (diff) |
iio: pressure: bmp280: split off an I2C Kconfig entry
This creates a separate BMP280_I2C Kconfig entry that gets selected
by BMP280 for I2C transport. As we currently only support I2C
transport there is not much practical change other than getting
a separate object file (or module) for the I2C driver part. The
old Kconfig symbol BMP280 will still select the stuff we need so
that oldconfig and old defconfigs works fine.
Tested-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure/bmp280-regmap.c')
-rw-r--r-- | drivers/iio/pressure/bmp280-regmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/pressure/bmp280-regmap.c b/drivers/iio/pressure/bmp280-regmap.c index 3341189d0975..6807113ec09f 100644 --- a/drivers/iio/pressure/bmp280-regmap.c +++ b/drivers/iio/pressure/bmp280-regmap.c @@ -1,4 +1,5 @@ #include <linux/device.h> +#include <linux/module.h> #include <linux/regmap.h> #include "bmp280.h" @@ -37,6 +38,7 @@ const struct regmap_config bmp180_regmap_config = { .writeable_reg = bmp180_is_writeable_reg, .volatile_reg = bmp180_is_volatile_reg, }; +EXPORT_SYMBOL(bmp180_regmap_config); static bool bmp280_is_writeable_reg(struct device *dev, unsigned int reg) { @@ -79,3 +81,4 @@ const struct regmap_config bmp280_regmap_config = { .writeable_reg = bmp280_is_writeable_reg, .volatile_reg = bmp280_is_volatile_reg, }; +EXPORT_SYMBOL(bmp280_regmap_config); |