mtd: rawnand: vf610: Fix Wvoid-pointer-to-enum-cast warning

"nfc->variant" is an enum, thus cast of pointer on 64-bit compile test
with clang W=1 causes:

  vf610_nfc.c:843:17: error: cast to smaller integer type 'enum vf610_nfc_variant' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
Krzysztof Kozlowski 2026-01-02 13:49:32 +01:00 committed by Miquel Raynal
parent 42983837ef
commit 3b9605987e

View File

@ -840,7 +840,7 @@ static int vf610_nfc_probe(struct platform_device *pdev)
return PTR_ERR(nfc->clk);
}
nfc->variant = (enum vf610_nfc_variant)device_get_match_data(&pdev->dev);
nfc->variant = (unsigned long)device_get_match_data(&pdev->dev);
if (!nfc->variant)
return -ENODEV;