iio: light: gp2ap020a00f: Select REGMAP_I2C
authorRoberta Dobrescu <roberta.dobrescu@gmail.com>
Thu, 12 Feb 2015 21:00:15 +0000 (23:00 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Feb 2015 11:28:48 +0000 (11:28 +0000)
This patch adds missing 'select' statement for gp2ap020a00f driver.
Without regmap_i2c, we get the following error when loading the module:
Unknown symbol devm_regmap_init_i2c.

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/Kconfig

index 5bea821..a338089 100644 (file)
@@ -62,6 +62,7 @@ config CM36651
 config GP2AP020A00F
        tristate "Sharp GP2AP020A00F Proximity/ALS sensor"
        depends on I2C
+       select REGMAP_I2C
        select IIO_BUFFER
        select IIO_TRIGGERED_BUFFER
        select IRQ_WORK