/* Set the VIS_RANGE bit of the optical sensor Si114x.  */
int Si114x_EnableVisRange(int vis_range_bit)
/* Set the VIS_RANGE bit of the optical sensor Si114x.  */
int Si114x_EnableVisRange(int vis_range_bit)
{	s16         retval = 0;
	if( vis_range_bit == 1 )
		retval += Si114xParamSet(si114x_handle, PARAM_ALSVIS_ADC_MISC, RANGE_EN);
	else
		retval += Si114xParamSet(si114x_handle, PARAM_ALSVIS_ADC_MISC, 0);
	return retval;
}