public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Added calibbias to perform offset correction
@ 2024-08-01 14:38 Abhash Jha
  2024-08-01 14:38 ` [PATCH v2 1/1] iio: light: apds9960: Add proximity and gesture offset calibration Abhash Jha
  0 siblings, 1 reply; 4+ messages in thread
From: Abhash Jha @ 2024-08-01 14:38 UTC (permalink / raw)
  To: linux-iio; +Cc: jic23, lars, linux-kernel, Abhash Jha

Hello,
This patch adds support for doing internal offset correction for the
proximity and gesture circuits. The correction value is written to
the respective POFFSET_x or GOFFSET_x register depending on which
direction we want to perform this calibration.
For the proximity channel we apply the offset to both the DL and UR
directions. And for the gesture channel we apply the offset to the
respective U, D, L, R direction.

Changes in v2:
- Used IIO_CHAN_INFO_CALIBBIAS instead of exposing custom sysfs attributes
- Used enum to choose between correct the offset registers
- Corrected the formatting and style errors
- Link to v1 : https://lore.kernel.org/linux-iio/20240707171357.709d9e35@jic23-huawei/

Regards,
Abhash

Abhash Jha (1):
  iio: light: apds9960: Add proximity and gesture offset calibration

 drivers/iio/light/apds9960.c | 69 +++++++++++++++++++++++++++++++++++-
 1 file changed, 68 insertions(+), 1 deletion(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-06  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-01 14:38 [PATCH v2 0/1] Added calibbias to perform offset correction Abhash Jha
2024-08-01 14:38 ` [PATCH v2 1/1] iio: light: apds9960: Add proximity and gesture offset calibration Abhash Jha
2024-08-03 13:58   ` Jonathan Cameron
2024-08-06  9:36     ` Abhash jha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox