Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759198Ab3FMSfo (ORCPT ); Thu, 13 Jun 2013 14:35:44 -0400 Received: from etezian.org ([198.101.225.253]:56450 "EHLO mail.etezian.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758886Ab3FMS26 (ORCPT ); Thu, 13 Jun 2013 14:28:58 -0400 From: Andi Shyti To: arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, pc@asdf.org, oatilla@gmail.com, andi@etezian.org Subject: [PATCH 15/19] bh1770glc: Modified scaler variable Date: Thu, 13 Jun 2013 20:20:49 +0200 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1420 Lines: 41 From: Onur Atilla Changed all exposed scalers to 8192 (Q13) in order to achieve consistency in the sysfs interface. Signed-off-by: Onur Atilla Signed-off-by: Andi Shyti --- drivers/misc/bh1770glc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/bh1770glc.c b/drivers/misc/bh1770glc.c index 054d3f3..cb63c25 100644 --- a/drivers/misc/bh1770glc.c +++ b/drivers/misc/bh1770glc.c @@ -105,8 +105,6 @@ #define BH1770_ENABLE 1 #define BH1770_PROX_CHANNELS 1 -#define BH1770_LUX_GA_SCALE 16384 -#define BH1770_LUX_CF_SCALE 2048 /* CF ChipFactor */ #define BH1770_LUX_DEFAULT_RATE 1 /* Index to lux rate table */ #define BH1770_PROX_DEFAULT_RATE 1 /* Direct HW value =~ 50Hz */ #define BH1770_PROX_DEF_RATE_THRESH 6 /* Direct HW value =~ 5 Hz */ @@ -122,6 +120,8 @@ #define BH1770_PROX_DEF_THRES 100 #define BH1770_DEFAULT_PERSISTENCE 10 #define BH1770_PROX_MAX_PERSISTENCE 50 +#define BH1770_LUX_GA_SCALE 8192 +#define BH1770_LUX_CF_SCALE 8192 /* CF ChipFactor */ #define BH1770_NEUTRAL_CF BH1770_LUX_CF_SCALE #define BH1770_LUX_CORR_SCALE 4096 -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/