[PATCH 05/19] bh1770glc: Removed obsolete offset settings from SFH7770 code

2013-06-13 Thread Andi Shyti
From: Onur Atilla 

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 
Signed-off-by: Andi Shyti 
---
 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 05/19] bh1770glc: Removed obsolete offset settings from SFH7770 code

2013-06-13 Thread Andi Shyti
From: Onur Atilla oati...@gmail.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 oati...@gmail.com
Signed-off-by: Andi Shyti a...@etezian.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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/