Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2739731ybj; Mon, 23 Sep 2019 08:38:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqywy1ru8foK6TFitOonCeVQ4jRWZJgPLvVfwIZb0s0Uqqf7nL2GtBVZlKZl3VDLltKefmX/ X-Received: by 2002:a05:6402:696:: with SMTP id f22mr740568edy.216.1569253125822; Mon, 23 Sep 2019 08:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569253125; cv=none; d=google.com; s=arc-20160816; b=nqx5U1R7KxDBNkx5x/ki9COIF/SED1P8Al7LSQHhdN6147LwIha9fX7ClOToTkJ1KU PutCh28THwb72nJzkRAWNavcBWhd5rrBNEvWFAT3VyS/pMmVwFTwIG3Qp7Drl+SnlfNJ EWrZ3YwofKu/hnA6/e4h67Ux6TtbOJm/L7XwjOLDEy1XL4SlejaOaV6lCISPYhrdux+3 PpSyJXIO74dZHKnBoXNzCf9colPRb6XjBZD3hRSQlAGZzzY1ydOKxEax/D5462WdxC15 U45KILhx7qUUQkx8FWVF4llIt/xxVHFCSTUqMellMTUSZ/l6JNBuTgP37VYjJntlFTRm gzww== 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=71n0rZZCVgBj5JYOx+Hr+2MB6bd0lgx2IeddW/Ef7WM=; b=u27V6fp/sXkjTD46yLSHQ7dVfMCufKdVyLOPpN3pfsCMxGmesT9RiYrQA3TqlAGZLb xPK/nI88nMX3dWCqRuQj9Ea0aog3SBztTpTXZrA6knSM1X0QG6swpQe01y0TINoESqvC lqS6FP+/fJw2G+U1sVDmgrrBAHQB2ewaxQIcLje85mIwkNqLAxraXA07MfWTq7qDT9ez TRNOpM01xr+FZbA36d++drMGgRWpS6yTbS0eoYyCLkmMft22WCi70u2ORxzWfMddOMrd FVAlKO9cZXJlUKmAEUU0LYimHnNs9kNlHIy8pP8wXnUCiwWkb0PsJyYJdQ2Cmn4kWwre XPHw== 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 jx20si5036839ejb.291.2019.09.23.08.38.19; Mon, 23 Sep 2019 08:38:45 -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 S1728178AbfIVKY2 (ORCPT + 99 others); Sun, 22 Sep 2019 06:24:28 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:36224 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728141AbfIVKY2 (ORCPT ); Sun, 22 Sep 2019 06:24:28 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id F0F8EFB09; Sun, 22 Sep 2019 12:24:26 +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 XGQLeNF6M_9X; Sun, 22 Sep 2019 12:24:26 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id E210248660; 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 5/5] leds: lm3692x: Use flags from LM3692X_BRT_CTRL Date: Sat, 21 Sep 2019 14:12:12 -0700 Message-Id: <8c9fb7dcb7ad64b5b84ca164c7bef414c991cd43.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 Use LM3692X_RAMP_EN instead of LM3692X_PWM_HYSTER_4LSB since the later is a flag for the PWM register. The actual register value remains unchanged. Signed-off-by: Guido Günther Reviewed-by: Dan Murphy Acked-by: Pavel Machek --- drivers/leds/leds-lm3692x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-lm3692x.c b/drivers/leds/leds-lm3692x.c index a57b1571e359..8b408102e138 100644 --- a/drivers/leds/leds-lm3692x.c +++ b/drivers/leds/leds-lm3692x.c @@ -269,7 +269,7 @@ static int lm3692x_init(struct lm3692x_led *led) goto out; ret = regmap_write(led->regmap, LM3692X_BRT_CTRL, - LM3692X_BL_ADJ_POL | LM3692X_PWM_HYSTER_4LSB); + LM3692X_BL_ADJ_POL | LM3692X_RAMP_EN); if (ret) goto out; -- 2.23.0.rc1