* [PATCH] staging: greybus: loopback: change async field type from int to u32
@ 2026-11-28 22:29 TAKANO Mitsuhiro via B4 Relay
0 siblings, 0 replies; only message in thread
From: TAKANO Mitsuhiro via B4 Relay @ 2026-11-28 22:29 UTC (permalink / raw)
To: Bryan O'Donoghue, Johan Hovold, Alex Elder, Greg Kroah-Hartman
Cc: greybus-dev, linux-staging, linux-kernel, TAKANO Mitsuhiro
From: TAKANO Mitsuhiro <takano32@gmail.com>
The sysfs attribute for async is defined with
gb_dev_loopback_rw_attr(async, u), which uses "%u" in both
sysfs_emit() and sscanf(..., &gb->async). However, struct gb_loopback
declares async as int rather than an unsigned type.
Change async to u32 to match the "%u" format specifier and the other
unsigned attributes in struct gb_loopback.
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
Verification: compile-tested on x86_64 with CONFIG_GREYBUS_LOOPBACK=m
(make W=1 drivers/staging/greybus/loopback.o; 0 warnings) and checked
with scripts/checkpatch.pl --strict. Checked against linux-next
(next-20261127) and lore.kernel.org for duplicates. Not runtime-tested on
Greybus hardware.
The change and the changelog text were produced with an AI coding
assistant (Gemini) working from the tree; I reviewed the diff and the
reasoning, and I am responsible for the submission.
---
drivers/staging/greybus/loopback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index efc69c10c..02bd8261b 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -77,7 +77,7 @@ struct gb_loopback {
struct gb_loopback_stats gbphy_firmware_latency;
int type;
- int async;
+ u32 async;
int id;
u32 size;
u32 iteration_max;
---
base-commit: f93eb7cfc4bfa5d46340f360873726e3e77f2365
change-id: 20261128-b4-greybus-loopback-async-type-3881628ae7e4
Best regards,
--
TAKANO Mitsuhiro <takano32@gmail.com>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-28 22:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 22:29 [PATCH] staging: greybus: loopback: change async field type from int to u32 TAKANO Mitsuhiro via B4 Relay
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®