mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 10:41:49 +02:00
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:
parent
42983837ef
commit
3b9605987e
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user