From e5316ea0f17e88eda0b2931f6e53cdfcca066173 Mon Sep 17 00:00:00 2001 From: Ankit Sharma Date: Wed, 22 Mar 2017 19:04:52 +0530 Subject: leds: qpnp-flash-v2: Enable charger mitigation When the charger mitigation is configured based on SW, enable it locally when the total brightness (or current level) of all torch/flash LED devices is greater than 1 A. CRs-Fixed: 2011199 Change-Id: I8336b3201f0780855c3dc3633179c398b9f62162 Signed-off-by: Ankit Sharma --- include/linux/leds-qpnp-flash.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/leds-qpnp-flash.h b/include/linux/leds-qpnp-flash.h index 4b5a339970fa..1fe6e1709fa6 100644 --- a/include/linux/leds-qpnp-flash.h +++ b/include/linux/leds-qpnp-flash.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -18,7 +18,6 @@ #define ENABLE_REGULATOR BIT(0) #define DISABLE_REGULATOR BIT(1) #define QUERY_MAX_CURRENT BIT(2) -#define PRE_FLASH BIT(3) #define FLASH_LED_PREPARE_OPTIONS_MASK GENMASK(3, 0) -- cgit v1.2.3