]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: npcm7xx: Use NULL instead of 0 for pointer
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 16 Feb 2026 08:58:26 +0000 (09:58 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 19 Mar 2026 23:12:10 +0000 (00:12 +0100)
commit08e392059b7554e30435b477cd059117fcc165ec
treefc9299f723df90228a7de48cc64e77a7e6020cdc
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
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
drivers/i2c/busses/i2c-npcm7xx.c