Add ps_it attributes for vcnl4040
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 3 repliesIn review
- v22 patches 4 repliesSuperseded
- v13 patches 8 repliesSuperseded
Changes in v3 from the cover letter
- Rename defines for ALS/PS shutdown bits
- Add local variable for building register value
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | iio: light: vcnl4000: Preserve conf bits when toggle powerdrivers/ | +51 | 0 replies | |
| 2/2 | iio: light: vcnl4000: Add ps_it attributes for vcnl4040drivers/ | +128 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] Add ps_it attributes for vcnl4040
Currently there is no way for userspace to make any configuration of the VCNL4040 sensors, but only the sensor readings are exported in sysfs. To support configuration for proximity integration time value, sysfs attributes for this needs to be exported.
To begin with the runtime power management turns both sensors (ALS, and PS) on before reading the sensor register values and then switches them off again. But when doing so it writes the whole register instead of just switching the power on/off bit. This needs to be fixed in order to make other persistent configurations.
Kind regards
Mårten Lindahl
Changes in v3:
- Rename defines for ALS/PS shutdown bits
- Add local variable for building register value
Changes in v2:
- Removed unnecessary switch for chip id
- Guard read/write sequence against potential race
- Remove confusing boolean operation
- Use bitmask macros instead of local field shifting
- Use .read_avail callback instead of using IIO_CONST_ATTR
- Skip [PATCH 2/3] iio: light: vcnl4000: Add enable attributes for vcnl4040
Mårten Lindahl (2):
iio: light: vcnl4000: Preserve conf bits when toggle power
iio: light: vcnl4000: Add ps_it attributes for vcnl4040
drivers/iio/light/vcnl4000.c | 185 +++++++++++++++++++++++++++++++++-- 1 file changed, 179 insertions(+), 6 deletions(-)
Signature · 1 line
2.30.2