supported devices. The rest of the patches are not that
interesting and either reduce duplicate code, add error handling, or
other minor cosmetic changes.
Brian Masney (12):
staging: iio: tsl2x7x: remove power functions from
tsl2X7X_platform_data
staging: iio: tsl2x7x: add common function for
0 into those bits.
Verified that the proximity sensor now works correctly on a TSL2771
hooked up to a Raspberry Pi 2.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 25 ++---
drivers/staging/iio/light/tsl2x7x.h | 2 ++
2 files changed, 16 insertions
: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 40 ++---
1 file changed, 24 insertions(+), 16 deletions(-)
diff --git a/drivers/staging/iio/light/tsl2x7x.c
b/drivers/staging/iio/light/tsl2x7x.c
index c02db03ef369..6bb622816660 100644
--- a/drivers/staging
-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 24 +++-
drivers/staging/iio/light/tsl2x7x.h | 9 ++---
2 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/drivers/staging/iio/light/tsl2x7x.c
b/drivers/staging/iio/light/tsl2x7x.c
index 07ce3076a05d
h, direction: either
...
Event: time: 1478193463020270185, type: illuminance, channel: 0, evtype:
thresh, direction: either
...
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/iio/light/ts
alling_value
in_intensity0_thresh_rising_en
in_intensity0_thresh_rising_value
in_proximity0_thresh_either_period
in_proximity0_thresh_falling_en
in_proximity0_thresh_falling_value
in_proximity0_thresh_rising_en
in_proximity0_thresh_rising_value
Brian Masney (11):
staging: iio: tsl2x7x: remove unnecessary code
ock(), but that is no longer the case. This patch also removes
a comment that is no longer relevant about returning the last sample.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 6 --
1 file changed, 6 deletions(-)
diff --git a/drivers/staging/iio/light/tsl2x7x.c
tsl2x7x_get_lux() does not need to clear the interrupt flag when
querying the ALS. The interrupt flag is cleared in
tsl2x7x_event_handler(). This patches removes the unnecessary code.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 4
1 file changed, 4 deletions
This patch updates all of the logging commands so that they are
consistent with the other messages, includes __func__ in the message,
and all of the messages include newlines. This patch also removes some
debug log messages.
Signed-off-by: Brian Masney
---
Changes since v1:
- Remove some debug
This patch ensures that all of the local variable declarations are in
reverse Christmas tree order where possible to increase code
readability.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 21 -
1 file changed, 8 insertions(+), 13 deletions(-)
diff
.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 64 -
drivers/staging/iio/light/tsl2x7x.h | 7 ++--
2 files changed, 24 insertions(+), 47 deletions(-)
diff --git a/drivers/staging/iio/light/tsl2x7x.c
b/drivers/staging/iio/light/tsl2x7x.c
tsl2x7x_get_lux() has a ch0lux and ch1lux variables that are not used
so this patch removes them.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 11 ---
1 file changed, 11 deletions(-)
diff --git a/drivers/staging/iio/light/tsl2x7x.c
b/drivers/staging/iio/light
Add Brian Masney's copyright and to the list of module authors for all
of the staging cleanups. This patch also update's Jon Brenner's current
work email address since AMS now owns TAOS.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 4 +++-
1 file change
routine.
- Run iio_event_monitor.
- Verify that a proximity event is triggered when my hand comes
anywhere between the sensor and where I performed the calibration
routine.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 107 +---
1 file
Remove the ch0 and ch1 variables from tsl2x7x_get_lux() and
write those values directly into the chip->als_cur_info.als_ch0
and chip->als_cur_info.als_ch01 variables.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 21 ++---
1 file changed, 10 inse
Here is a patch series to move the tsl2x7x driver out of staging and
into mainline. Driver was tested using various TSL2X7X devices on a
Raspberry Pi 2.
Datasheet for the TSl2772:
https://ams.com/eng/content/download/291503/1066377/file/TSL2772_DS000181_2-00.pdf
Brian Masney (4):
staging: iio
Move the tsl2x7x driver out of staging and into mainline.
Signed-off-by: Brian Masney
---
Note: I intentionally ran git format-patch with --no-renames since
Jonathan likes to see the whole files in the email body for staging
graduation patches.
The #include "tsl2x7x.h" was changed t
:
in_intensity0_thresh_either_en
in_intensity0_thresh_either_period
in_intensity0_thresh_falling_value
in_intensity0_thresh_rising_value
in_proximity0_thresh_either_en
in_proximity0_thresh_either_period
in_proximity0_thresh_falling_value
in_proximity0_thresh_rising_value
Signed-off-by: Brian Masney
be found at https://www.i2c-bus.org/auto-increment/.
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 100
1 file changed, 67 insertions(+), 33 deletions(-)
diff --git a/drivers/staging/iio/light/tsl2x7x.c
b/drivers/staging/iio/light
in_intensity0_raw
in_intensity1_raw
in_proximity0_calibrate
in_proximity0_calibscale
in_proximity0_calibscale_available
in_proximity0_raw
name
of_node
power
subsystem
uevent
Signed-off-by: Brian Masney
---
drivers/staging/iio/light/tsl2x7x.c | 24
1 file changed, 12 insertions(+), 12
301 - 320 of 320 matches
Mail list logo