[PATCH] staging: greybus: loopback: change async field type from int to u32

From: TAKANO Mitsuhiro via B4 Relay

Date: Sat Nov 28 2026 - 17:29:26 EST


From: TAKANO Mitsuhiro <takano32@xxxxxxxxx>

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@xxxxxxxxx>
---
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@xxxxxxxxx>