lkml.org 
[lkml]   [2023]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] iio/adc-joystick: buffer data parsing fixes
Date
Hi all,

this is a long overdue v2 for fixes [1] related to adc-joystick channel
parsing.

Patch [1/2] now also addresses a case where a readout of ADC data
containing samples for two channels, where only one channel is active,
would push the data into a buffer without discarding the disabled
channel first.

Patch [2/2] addresses concerns about exposure to channels the clients
shouldn't know about. The IIO helpers from v1 are gone and the offsets
are now calculated based only on the channels adc-joystick has access
to.

Tested on GCW Zero (by me) and on Anbernic RG350 (by Paul).

[1] https://lore.kernel.org/all/20220817105643.95710-1-contact@artur-rojek.eu/

Cheers,
Artur

Artur Rojek (2):
iio/adc: ingenic: Fix channel offsets in buffer
input: joystick: Fix buffer data parsing

drivers/iio/adc/ingenic-adc.c | 20 +++--
drivers/input/joystick/adc-joystick.c | 102 +++++++++++++++++++++++---
2 files changed, 103 insertions(+), 19 deletions(-)

--
2.40.1

\
 
 \ /
  Last update: 2023-05-22 01:00    [W:0.074 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site