From: "Mårten Lindahl" <marten.lindahl@axis.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "Lars-Peter Clausen" <lars@metafoo.de>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
linux-iio@vger.kernel.org, kernel@axis.com,
"Mårten Lindahl" <marten.lindahl@axis.com>
Subject: [PATCH v5 0/3] iio: light: vcnl4000: Add vcnl4040 interrupt support
Date: Tue, 17 Jan 2023 20:00:14 +0100 [thread overview]
Message-ID: <20230117190017.3789181-1-marten.lindahl@axis.com> (raw)
Hi!
I have made three patches to add support for proximity sensor
interrupts with the vcnl4040 sensor.
The first two patches are minor restructuring of the current setup for
interrupts since the probe function hardcodes it for vcnl4010 only.
The third patch adds support to configure proximity sensor interrupts
and threshold limits for vcnl4040.
Kind regards
Mårten Lindahl
Changes in v5:
- Restore one more unnecessary line change
- Fix indentation
- Build reg value in a clearer way
Changes in v4:
- Restore unnecessary line changes
- Remove unnecessary typecast
Changes in v3:
- Only register iio_trigger when there is an irq_thread function
Changes in v2:
- Make restructure of functions for interrupts and triggered buffer
in separate patch
- Add check for buffer_setup_ops
- Remove irq dependency for devm_iio_triggered_buffer_setup
- Change size of register variable and document it
- Use field definitions for read/write event_config
Mårten Lindahl (3):
iio: light: vcnl4000: Prepare for more generic setup
iio: light: vcnl4000: Make irq handling more generic
iio: light: vcnl4000: Add interrupt support for vcnl4040
drivers/iio/light/vcnl4000.c | 449 ++++++++++++++++++++++++-----------
1 file changed, 311 insertions(+), 138 deletions(-)
--
2.30.2
next reply other threads:[~2023-01-17 20:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-17 19:00 Mårten Lindahl [this message]
2023-01-17 19:00 ` [PATCH v5 1/3] iio: light: vcnl4000: Prepare for more generic setup Mårten Lindahl
2023-01-17 19:00 ` [PATCH v5 2/3] iio: light: vcnl4000: Make irq handling more generic Mårten Lindahl
2023-01-17 19:00 ` [PATCH v5 3/3] iio: light: vcnl4000: Add interrupt support for vcnl4040 Mårten Lindahl
2023-01-18 8:33 ` [PATCH v5 0/3] iio: light: vcnl4000: Add vcnl4040 interrupt support Andy Shevchenko
2023-01-21 18:04 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230117190017.3789181-1-marten.lindahl@axis.com \
--to=marten.lindahl@axis.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=jic23@kernel.org \
--cc=kernel@axis.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox