aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core-slave.c
diff options
context:
space:
mode:
authorQianfeng Rong <[email protected]>2025-07-09 04:23:46 +0000
committerAndi Shyti <[email protected]>2025-07-25 21:15:23 +0000
commita9320f3e96adf0398187816b39cfa867340fc40c (patch)
tree69855c534674bce8b623daae32c39a1e12cbda3d /drivers/i2c/i2c-core-slave.c
parenti2c: imx: use guard to take spinlock (diff)
downloadkernel-a9320f3e96adf0398187816b39cfa867340fc40c.tar.gz
kernel-a9320f3e96adf0398187816b39cfa867340fc40c.zip
i2c: st: Use min() to improve code
Use min() to reduce the code and improve its readability. The type of the max parameter in the st_i2c_rd_fill_tx_fifo() was changed from int to u32, because the max parameter passed in is always greater than 0. Signed-off-by: Qianfeng Rong <[email protected]> Reviewed-by: Patrice Chotard <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/i2c/i2c-core-slave.c')
0 files changed, 0 insertions, 0 deletions