aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2016-09-10 23:38:44 +0200
committerAndreas Blaesius <skate4life@gmx.de>2016-09-15 16:27:45 +0200
commit95d016d4ddf0e936fa40aa85c6595358d79aa114 (patch)
treea237cefd86b4b40e03101919b0a35e1e4b10b22d
parent09a21f8f272735eef700a4017cd7a2ade7aee3db (diff)
downloadkernel_samsung_espresso10-95d016d4ddf0e936fa40aa85c6595358d79aa114.zip
kernel_samsung_espresso10-95d016d4ddf0e936fa40aa85c6595358d79aa114.tar.gz
kernel_samsung_espresso10-95d016d4ddf0e936fa40aa85c6595358d79aa114.tar.bz2
espresso: sensors: add missing gp2a_power function
fixes: [ 0.963623] gp2a_i2c_probe: incomplete pdata! Change-Id: Ic1b7ecb35ec17c98da33fcadc63c30881fc875e0
-rw-r--r--arch/arm/mach-omap2/board-espresso-sensors.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-espresso-sensors.c b/arch/arm/mach-omap2/board-espresso-sensors.c
index 9d90afa..2cd36ce 100644
--- a/arch/arm/mach-omap2/board-espresso-sensors.c
+++ b/arch/arm/mach-omap2/board-espresso-sensors.c
@@ -69,6 +69,11 @@ static int gp2a_light_adc_value(void)
return twl6030_get_gpadc_conversion(GP2A_LIGHT_ADC_CHANNEL);
}
+static void gp2a_power(bool on)
+{
+
+}
+
static void omap4_espresso_sensors_regulator_on(bool on)
{
struct regulator *reg_v28;
@@ -103,6 +108,7 @@ static void omap4_espresso_sensors_regulator_on(bool on)
}
static struct gp2a_platform_data gp2a_pdata = {
+ .power = gp2a_power,
.p_out = GPIO_PS_VOUT,
.light_adc_value = gp2a_light_adc_value,
.ldo_on = omap4_espresso_sensors_regulator_on,