Commit 3b960598 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Miquel Raynal
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 42983837
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;