Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

i2c: npcm7xx: Use NULL instead of 0 for pointer

Pointers should use NULL instead of explicit '0', as pointed out by
sparse:

i2c-npcm7xx.c:1387:61: warning: Using plain integer as NULL pointer

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Tali Perry <tali.perry1@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260216085825.70568-2-krzysztof.kozlowski@oss.qualcomm.com

authored by

Krzysztof Kozlowski and committed by
Andi Shyti
08e39205 6de23f81

+1 -1
+1 -1
drivers/i2c/busses/i2c-npcm7xx.c
··· 1384 1384 */ 1385 1385 bus->operation = I2C_NO_OPER; 1386 1386 bus->own_slave_addr = 0xFF; 1387 - i2c_slave_event(bus->slave, I2C_SLAVE_STOP, 0); 1387 + i2c_slave_event(bus->slave, I2C_SLAVE_STOP, NULL); 1388 1388 iowrite8(NPCM_I2CST_SLVSTP, bus->reg + NPCM_I2CST); 1389 1389 if (bus->fifo_use) { 1390 1390 npcm_i2c_clear_fifo_int(bus);