Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2966946ybj; Mon, 23 Sep 2019 12:20:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbRnxgQGwvgLh8lcJYQh/IOXjzpmBvz0Rmi6mZUtKKulrPdIBlY/ToijbmG8NlkWcQH/Lb X-Received: by 2002:a50:9b58:: with SMTP id a24mr1806298edj.29.1569266416042; Mon, 23 Sep 2019 12:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569266416; cv=none; d=google.com; s=arc-20160816; b=F1P69hqMYJet2M4+q8nTiH9UtGQK/aFB8Kx4ctGKaIVo8z2RxsNy5493NwEzt6RdKu 6IE5cdGZAGKXP26W+2ZdCwqVHyDYOmMIWcWcHr4aYvsyPBM+ekNukcxYs0IVwVztJ7T5 QZAyydIFRVu8C7W+G6VuEhOXbTJTS5gHryxln6JJ/jJz+okcCVCqQ7tyfuC2RtH+CEig SsbwV/J529+9AIX+qOEPkTWBA4sc54PHd5l2Bfh4Us53uk5liFLXWX1bCCJQ16wai2Ku f69aoNeEU4py2irba9LrnoW0YPZNHwhNg793n/cULEK9GFai05UZKmZX4ufCGelDV64B oIrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=Dp/7fp+ke5fEzclS1+Ao4xlxy3qStQzrJP4psmE+kUE=; b=MkkGjTSrKnHF4Uv06k7WpTIGu8tizMhms1q8Aw/FkQuaS8QCT+FK15ufBG0PjN1C5d RbVtwW3q6fy4E39NqsY4ZIzrz07bt+mOoIKSe7Xsbx7UP8A3k4FI+guvblQaSnVPn1Kg q5CIoA4/Fo3ZKJiWXsDrSF9BKHAFDjEI7qiuMboD+XiQ0drWeVo9lHlxHYfVSBW32VWT MGbCHD6G5wRvOoUl9vKymomk8kGDbQsDjfZmSujaH9gJ+3Xr4kcpe90LizjpvhUUEavX Tr/YZzym0dme8aN7FsaLcRXYp6SI04BTRhd03T/fkvIeK4Xycxh84zHfNv+Vl92uuLQl SYBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p43si7049914edc.368.2019.09.23.12.19.51; Mon, 23 Sep 2019 12:20:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728221AbfIVKYb (ORCPT + 99 others); Sun, 22 Sep 2019 06:24:31 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:36236 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728141AbfIVKYa (ORCPT ); Sun, 22 Sep 2019 06:24:30 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 2029FFB08; Sun, 22 Sep 2019 12:24:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id owtZTPbETakA; Sun, 22 Sep 2019 12:24:25 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id DA8544866C; Sat, 21 Sep 2019 14:12:12 -0700 (PDT) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Jacek Anaszewski , Pavel Machek , Dan Murphy , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/5] leds: lm3692x: Use flags from LM3692X_BOOST_CTRL Date: Sat, 21 Sep 2019 14:12:11 -0700 Message-Id: <258bf6f37d0b23cd4f72f97a042d81c2ea2e42b2.1569100154.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current setup of LM3692X_BOOST_CTRL uses flags from LM3692X_BRT_CTRL. Use flags from LM3692X_BOOST_CTRL but leave the resulting register value unchanged. Signed-off-by: Guido Günther Reviewed-by: Dan Murphy Acked-by: Pavel Machek --- drivers/leds/leds-lm3692x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lm3692x.c b/drivers/leds/leds-lm3692x.c index 54e9bd2d288b..a57b1571e359 100644 --- a/drivers/leds/leds-lm3692x.c +++ b/drivers/leds/leds-lm3692x.c @@ -250,9 +250,9 @@ static int lm3692x_init(struct lm3692x_led *led) goto out; ret = regmap_write(led->regmap, LM3692X_BOOST_CTRL, - LM3692X_BRHT_MODE_RAMP_MULTI | - LM3692X_BL_ADJ_POL | - LM3692X_RAMP_RATE_250us); + LM3692X_BOOST_SW_1MHZ | + LM3692X_BOOST_SW_NO_SHIFT | + LM3692X_OCP_PROT_1_5A); if (ret) goto out; -- 2.23.0.rc1