Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1397047ybj; Fri, 20 Sep 2019 09:47:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqw529w9yNpN0m00WrCnCjNVkKXtHGy0cHb6bLWcgMHoY7aDbZSsbFtTFUfk5XsydxtMSeVb X-Received: by 2002:a17:907:20c1:: with SMTP id qq1mr19392565ejb.87.1568998059551; Fri, 20 Sep 2019 09:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568998059; cv=none; d=google.com; s=arc-20160816; b=R83h6BHS00FC6bdCoKV7c2oFGz+dBlntskUeNvQY9Jq5nRIO0gu2ROEtee7rJuVXaK JhKCloTtgXoC+SgtRriMPoklODnJeGn6X5c5bvL1nMGJ8lgTeUCoGWQLqGUR0g2kZlsE a5VjXIt3TM2h8ojlX+SoWNg8mP0VwTQnB9aLqz3IuzPUn6ovpAHJlIlllOp6N4AidBPV HJhGYl8q3D+o+guH1d9yzk1roYu2RCUliuIl3Bn7h0gIWtl+ZiB4EsVaMcrOhZVPDRef lB3kmyK5OCvKCF+h5MA3WXKp6aU6LP5/cadqlTSieqhW5NwA3O/anmzyi7/1MIYTMNF7 IENg== 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=+VoEsxWMNqMXmQD8vgAPevkoQAPzvyoGq4TtztuCGQE=; b=xjk2XNBYeWN9zbyFZQ1yN5+e5hklrXcCc+qCZuf7sn4HRn3E3t+u2NOICW8TOCNUiM ewrMG1worifv6FrBuibdAfKyCjnhj8MuGX1+5/wB9Mr7Bs9ttvMJNwmjmuHHmH0dysag XC9pElkUjsVLFIIC+pU/CmIrm9pXdMYpMAV7Z08vXaj8hi4dEzCuDm3dAS/qoZQHkivC zoJhQuY1KBKMjt4v0PtqyJ++oUZPHCnX0YRqh9OT3XtJYhZtJ0cqfdCRFgr9Cxxi+VXh SDhLpV3o+G9PapVhj8PQebqIP49xl3W+7heosa2k9zjeqxxXiov3T8BQjW7htMsJSnX8 7utA== 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 mh25si1399021ejb.81.2019.09.20.09.47.14; Fri, 20 Sep 2019 09:47:39 -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 S2408110AbfITF1P (ORCPT + 99 others); Fri, 20 Sep 2019 01:27:15 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:39730 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408089AbfITF1P (ORCPT ); Fri, 20 Sep 2019 01:27:15 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id D2D8FFB03; Fri, 20 Sep 2019 07:27:13 +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 bTNVxdv-WcRO; Fri, 20 Sep 2019 07:27:13 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id E082548848; Thu, 19 Sep 2019 22:27:07 -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 v2 4/5] leds: lm3692x: Use flags from LM3692X_BOOST_CTRL Date: Thu, 19 Sep 2019 22:27:06 -0700 Message-Id: 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 6f6a17ec7c9f..d8a60c7c8077 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