mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
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 <quic_jprakash@quicinc.com>
This commit is contained in:
parent
c340e37c45
commit
1bd12c499c
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue