[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <957f59d00ccecf07127a6c729fc513992fc745c8.1371145891.git.andi@etezian.org>
Date: Thu, 13 Jun 2013 20:20:39 +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 05/19] bh1770glc: Removed obsolete offset settings from SFH7770 code
From: Onur Atilla <oatilla@...il.com>
Some obsolete version-dependent coefficient and constant settings
were removed out of the sensor detection functions. These values
cause unwanted offset between different sensor types.
Signed-off-by: Onur Atilla <oatilla@...il.com>
Signed-off-by: Andi Shyti <andi@...zian.org>
---
drivers/misc/bh1770glc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/misc/bh1770glc.c b/drivers/misc/bh1770glc.c
index d8d6526..53f3c17 100644
--- a/drivers/misc/bh1770glc.c
+++ b/drivers/misc/bh1770glc.c
@@ -565,9 +565,6 @@ static int bh1770_detect(struct bh1770_chip *chip)
if ((manu == BH1770_MANUFACT_OSRAM) &&
((part & BH1770_PART_MASK) == BH1770_PART)) {
snprintf(chip->chipname, sizeof(chip->chipname), "SFH7770");
- /* Values selected by comparing different versions */
- chip->prox_coef = 819; /* 0.8 * BH1770_COEF_SCALER */
- chip->prox_const = 40;
chip->lux_cf = chip->pdata->als_scf_SFH7770;
return 0;
}
--
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