mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
a582ff8ea8
Add FIR filter to process light sensor data of stk3x1x ALPS. This filter is used to suppress data jitter which is caused by power supply noise. CRs-Fixed: 524706 Change-Id: Ic3a33621dffc69f198f0389efcb82aa0963efd97 Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
30 lines
617 B
C
30 lines
617 B
C
/*
|
|
*
|
|
* Id: stk3x1x.h
|
|
*
|
|
* Copyright (C) 2012 Lex Hsieh <lex_hsieh@sitronix.com.tw>
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file COPYING in the main directory of this archive for
|
|
* more details.
|
|
*
|
|
*/
|
|
#ifndef __STK3X1X_H__
|
|
#define __STK3X1X_H__
|
|
|
|
/* platform data */
|
|
struct stk3x1x_platform_data {
|
|
uint8_t state_reg;
|
|
uint8_t psctrl_reg;
|
|
uint8_t alsctrl_reg;
|
|
uint8_t ledctrl_reg;
|
|
uint8_t wait_reg;
|
|
uint16_t ps_thd_h;
|
|
uint16_t ps_thd_l;
|
|
int int_pin;
|
|
uint32_t transmittance;
|
|
uint32_t int_flags;
|
|
bool use_fir;
|
|
};
|
|
|
|
#endif /* __STK3X1X_H__ */
|