mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] iio: proximity: hx9023s: fix scan_type endianness
@ 2025-07-22 23:07 David Lechner
  2025-07-22 23:08 ` David Lechner
  0 siblings, 1 reply; 10+ messages in thread
From: David Lechner @ 2025-07-22 23:07 UTC (permalink / raw)
  To: Jonathan Cameron, Nuno Sá,
	Andy Shevchenko, David Lechner, Yasin Lee
  Cc: linux-iio, linux-kernel, Jonathan Cameron

Change the scan_type endianness from IIO_BE to IIO_LE. This matches
the call to cpu_to_le16() in hx9023s_trigger_handler() that formats
the data before pushing it to the IIO buffer.

Fixes: 60df548277b7 ("iio: proximity: Add driver support for TYHX's HX9023S capacitive proximity sensor")
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
 drivers/iio/proximity/hx9023s.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/proximity/hx9023s.c b/drivers/iio/proximity/hx9023s.c
index 33781c3147286fb3e2f022201ccf7e908d0b6b12..8e5748a5f37a7b6674acc1604710394326818204 100644
--- a/drivers/iio/proximity/hx9023s.c
+++ b/drivers/iio/proximity/hx9023s.c
@@ -251,7 +251,7 @@ static const struct iio_event_spec hx9023s_events[] = {
 		.sign = 's',					\
 		.realbits = 16,					\
 		.storagebits = 16,				\
-		.endianness = IIO_BE,				\
+		.endianness = IIO_LE,				\
 	},							\
 }
 

---
base-commit: cd2731444ee4e35db76f4fb587f12d327eec5446
change-id: 20250722-iio-proximity-hx9023c-fix-scan_type-endianness-8ab26af05f75

Best regards,
-- 
David Lechner <dlechner@baylibre.com>


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

end of thread, other threads:[~2025-08-25 17:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-22 23:07 [PATCH] iio: proximity: hx9023s: fix scan_type endianness David Lechner
2025-07-22 23:08 ` David Lechner
2025-07-23 14:13   ` Andy Shevchenko
2025-07-23 14:29     ` David Lechner
2025-07-23 14:37       ` Andy Shevchenko
2025-07-23 14:57         ` David Lechner
2025-07-23 15:06           ` Andy Shevchenko
2025-07-23 15:11             ` David Lechner
2025-07-23 15:56               ` Jonathan Cameron
2025-08-25 17:07                 ` David Lechner

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

all inboxes | Powered by JetHome®