diff options
author | Truong Ta Xuan <truongtx8@gmail.com> | 2014-01-17 19:59:34 +0700 |
---|---|---|
committer | sbrissen <sbrissen@hotmail.com> | 2014-01-17 10:21:32 -0500 |
commit | fc2c3ebcd40150a0a9ae81a40ca14c8709bea943 (patch) | |
tree | 15c96d29bd4ac2d996a294c45fd1f89f7c860766 | |
parent | ec7e808dfe37121fdd2ad87bfee428e3ea78bbe9 (diff) | |
download | kernel_samsung_smdk4412-fc2c3ebcd40150a0a9ae81a40ca14c8709bea943.zip kernel_samsung_smdk4412-fc2c3ebcd40150a0a9ae81a40ca14c8709bea943.tar.gz kernel_samsung_smdk4412-fc2c3ebcd40150a0a9ae81a40ca14c8709bea943.tar.bz2 |
Fix light sensors for GT-N5100
Change-Id: Ifd1bd76ec2ebf8014107747474145d0bfc9a3281
-rw-r--r-- | arch/arm/configs/cyanogenmod_n5100_defconfig | 4 | ||||
-rw-r--r-- | include/linux/sensor/gp2a.h | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/configs/cyanogenmod_n5100_defconfig b/arch/arm/configs/cyanogenmod_n5100_defconfig index 191702f..7e90e7d 100644 --- a/arch/arm/configs/cyanogenmod_n5100_defconfig +++ b/arch/arm/configs/cyanogenmod_n5100_defconfig @@ -2915,11 +2915,11 @@ CONFIG_INPUT_YAS_MAGNETOMETER_POSITION=2 CONFIG_SENSORS_YAS532=y CONFIG_SENSORS_YAS_ORI=y # CONFIG_SENSORS_TAOS is not set -# CONFIG_SENSORS_GP2A is not set +CONFIG_SENSORS_GP2A=y # CONFIG_SENSORS_GP2A_ANALOG is not set # CONFIG_SENSORS_CM36651 is not set # CONFIG_SENSORS_BH1721 is not set -CONFIG_SENSORS_AL3201=y +# CONFIG_SENSORS_AL3201 is not set CONFIG_SENSORS_K2DH=y CONFIG_SENSORS_K3DH=y CONFIG_SENSOR_K3DH_INPUTDEV=y diff --git a/include/linux/sensor/gp2a.h b/include/linux/sensor/gp2a.h index 08ec548..1c9618a 100644 --- a/include/linux/sensor/gp2a.h +++ b/include/linux/sensor/gp2a.h @@ -63,18 +63,12 @@ extern char proximity_sensor_detection; /* prototype */ int opt_i2c_read(u8 reg, unsigned char *rbuf, int len); int opt_i2c_write(u8 reg, u8 *val); -#ifndef CONFIG_MACH_KONA_SENSOR int lightsensor_get_adcvalue(void); -#endif int is_gp2a030a(void); struct gp2a_platform_data { int (*gp2a_led_on) (bool); int p_out; /* proximity-sensor-output gpio */ -#ifdef CONFIG_MACH_KONA_SENSOR - unsigned long (*gp2a_get_threshold)(u8 *); -#else unsigned long (*gp2a_get_threshold)(void); -#endif }; #endif |