From 1bd12c499cbd16ecd322cf9460997e62d6bd786d Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Fri, 25 Feb 2022 14:21:35 +0530 Subject: [PATCH] leds: qpnp-flash-v2: Fix compilation error Fix a compilation error seen when casting void pointer to int by casting it to uintptr_t instead. Change-Id: I679da04f21041c386fa7ad8905ede94e12ea160c Signed-off-by: Jishnu Prakash --- drivers/leds/leds-qpnp-flash-v2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/leds/leds-qpnp-flash-v2.c b/drivers/leds/leds-qpnp-flash-v2.c index 2123c8dccb56..cc4915f03b52 100644 --- a/drivers/leds/leds-qpnp-flash-v2.c +++ b/drivers/leds/leds-qpnp-flash-v2.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #define pr_fmt(fmt) "flashv2: %s: " fmt, __func__ @@ -2970,7 +2971,7 @@ static int qpnp_flash_led_probe(struct platform_device *pdev) return -EINVAL; } - led->pmic_type = (u8)of_device_get_match_data(&pdev->dev); + led->pmic_type = (uintptr_t)of_device_get_match_data(&pdev->dev); if (led->pmic_type == PM6150L) led->wa_flags |= PM6150L_IRES_WA;