]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: axis-fifo: use u32 for fifo depth flags
authorGustavo Piaz da Silva <gustavopiazdasilva2102@gmail.com>
Mon, 23 Feb 2026 11:42:06 +0000 (08:42 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 14:45:31 +0000 (15:45 +0100)
Update has_rx_fifo and has_tx_fifo types from int to u32 in struct
axis_fifo.

The of_property_read_u32() function expects a pointer to u32. Although
the current code works correctly with int, using u32 aligns the data
structure with the Device Tree API and prevents potential
type-mismatch issues.

Signed-off-by: Gustavo Piaz da Silva <gustavopiazdasilva2102@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260223114207.3639-2-gustavopiazdasilva2102@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c

index aa90b27197cf9695d6d8300a5f6b1047da857638..e54bc4c1d40f2dd0ca1179831f68b19b1c0c4ea0 100644 (file)
@@ -71,8 +71,8 @@ struct axis_fifo {
 
        unsigned int rx_fifo_depth;
        unsigned int tx_fifo_depth;
-       int has_rx_fifo;
-       int has_tx_fifo;
+       u32 has_rx_fifo;
+       u32 has_tx_fifo;
 
        wait_queue_head_t read_queue;
        struct mutex read_lock; /* lock for reading */