lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <b4178a04234f32dd4e0b37e86d812f0c5a051ee8.1371145891.git.andi@etezian.org>
Date:	Thu, 13 Jun 2013 20:20:49 +0200
From:	Andi Shyti <andi@...zian.org>
To:	arnd@...db.de, gregkh@...uxfoundation.org
Cc:	linux-kernel@...r.kernel.org, pc@...f.org, oatilla@...il.com,
	andi@...zian.org
Subject: [PATCH 15/19] bh1770glc: Modified scaler variable

From: Onur Atilla <oatilla@...il.com>

Changed all exposed scalers to 8192 (Q13) in order to
achieve consistency in the sysfs interface.

Signed-off-by: Onur Atilla <oatilla@...il.com>
Signed-off-by: Andi Shyti <andi@...zian.org>
---
 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ