Skip to content

misc: bh1770glc features and fixes

Andi Shyti lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19bh1770glc: added input device interfacedrivers/misc/bh1770glc.c+57 -15 replies
2/19bh1770glc: different glass attenuation parametersinclude/linux/i2c/bh1770glc.h+2 -00 replies
3/19bh1770glc: lux0_glass_factor & lux0_comp_factor on sysfsdrivers/misc/bh1770glc.c+22 -02 replies
4/19bh1770glc: Added raw lux output file for ALS to sysfsdrivers/misc/bh1770glc.c+31 -00 replies
5/19bh1770glc: Removed obsolete offset settings from SFH7770 codedrivers/misc/bh1770glc.c+0 -30 replies
6/19bh1770glc: removed proximity adjustementdrivers/misc/bh1770glc.c+2 -370 replies
7/19bh1770glc: split read result functiondrivers/misc/bh1770glc.c+34 -190 replies
8/19bh1770glc: logic change in the proximity readdrivers/misc/bh1770glc.c+5 -00 replies
9/19bh1770glc: use min_t instead of mindrivers/misc/bh1770glc.c+1 -10 replies
10/19bh1770glc: use kstrtoul instead of strict_strtouldrivers/misc/bh1770glc.c+10 -100 replies
11/19bh1770glc: removed lux_read_raw_result() functiondrivers/misc/bh1770glc.c+2 -70 replies
12/19bh1770glc: Introduced dynamic thresholddrivers/misc/bh1770glc.c include/linux/i2c/bh1770glc.h+61 -380 replies
13/19bh1770glc: Code cleaning and aligning in source codedrivers/misc/bh1770glc.c include/linux/i2c/bh1770glc.h+38 -420 replies
14/19bh1770glc: Modified the neutral glass attenuation valueinclude/linux/i2c/bh1770glc.h+2 -20 replies
15/19bh1770glc: Modified scaler variabledrivers/misc/bh1770glc.c+2 -20 replies
16/19bh1770glc: Added sanity check for scfdrivers/misc/bh1770glc.c+11 -20 replies
17/19bh1770glc: Implemented switch for interrupt operationdrivers/misc/bh1770glc.c include/linux/i2c/bh1770glc.h+11 -00 replies
18/19bh1770glc: Corrected proximity sensor ratesdrivers/misc/bh1770glc.c+3 -30 replies
19/19bh1770glc: Proximity sensor LED current updatedrivers/misc/bh1770glc.c include/linux/i2c/bh1770glc.h+11 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/19] misc: bh1770glc features and fixes

Hi,

This patchset contains a collection of new features and fixes for the bh1770glc driver for the BH1770 and SFH7770 proximity and ambient light sensor device.

In few words this is what it brings:
- /dev/input/event interface
- removal obsolete and wrong parameters
- new relevant parameters for glass attenuation and glass factor, lux compensation due to the LED cover or ink
- improvments of the threshold usage
- corrections of the device rates and default LED current
- general code cleanup

These patches have been applied on top of mainline master, but they could be easily applied on top of any branch since they don't affect any core code.

Thanks,
Andi

Andi Shyti (7):
bh1770glc: added input device interface
bh1770glc: removed proximity adjustement
bh1770glc: split read result function
bh1770glc: logic change in the proximity read
bh1770glc: use min_t instead of min
bh1770glc: use kstrtoul instead of strict_strtoul
bh1770glc: removed lux_read_raw_result() function

Onur Atilla (12):
bh1770glc: different glass attenuation parameters
bh1770glc: lux0_glass_factor & lux0_comp_factor on sysfs
bh1770glc: Added raw lux output file for ALS to sysfs
bh1770glc: Removed obsolete offset settings from SFH7770 code
bh1770glc: Introduced dynamic threshold
bh1770glc: Code cleaning and aligning in source code
bh1770glc: Modified the neutral glass attenuation value
bh1770glc: Modified scaler variable
bh1770glc: Added sanity check for scf
bh1770glc: Implemented switch for interrupt operation
bh1770glc: Corrected proximity sensor rates
bh1770glc: Proximity sensor LED current update

 drivers/misc/bh1770glc.c      |  411 +++++++++++++++++++++++++++--------------
 include/linux/i2c/bh1770glc.h |   30 +--
 2 files changed, 289 insertions(+), 152 deletions(-)
Signature · 1 line
1.7.10.4