Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 140d04f3 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

leds-qpnp-flash: Add a stub function for qpnp_flash_led_prepare()



When CONFIG_LEDS_QPNP_FLASH_V2 option is unselected, drivers that
make use of qpnp_flash_led_prepare() fails the compilation as the
reference is not available. Add a stub function to allow them
compile.

Change-Id: I1ae8457f6aaa655dfbbc63677df6c2f6416ad029
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent e70b432e
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 */

#ifndef __LEDS_QPNP_FLASH_H
@@ -15,8 +15,17 @@

#define FLASH_LED_PREPARE_OPTIONS_MASK	GENMASK(3, 0)

#ifdef CONFIG_LEDS_QPNP_FLASH_V2
int qpnp_flash_led_prepare(struct led_trigger *trig, int options,
					int *max_current);
#else
static inline int qpnp_flash_led_prepare(struct led_trigger *trig, int options,
					int *max_current)
{
	return -EINVAL;
}
#endif

#ifdef CONFIG_BACKLIGHT_QCOM_SPMI_WLED
int wled_flash_led_prepare(struct led_trigger *trig, int options,
					int *max_current);