Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp380936lqp; Wed, 12 Jun 2024 04:43:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvUhRJucXKKDi6gEd0jAoP5hJQ5I7+Tz4tESellfVMYuIiNkZMHQcjdXJPdL/ZhbVZYkqKnjhf9IIr0GuQCcR6lGSiwqXYZviEPw5Scw== X-Google-Smtp-Source: AGHT+IEfRs44WK1ZdnSqsZuQZx78wsL2oxv9Tnao5WGhC8+QW/XtTtmZ0dk9kxr/GmvXqJxNE4cP X-Received: by 2002:a05:6e02:17c7:b0:375:8b0e:4442 with SMTP id e9e14a558f8ab-375cd0cc3f4mr16025725ab.19.1718192588395; Wed, 12 Jun 2024 04:43:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718192588; cv=pass; d=google.com; s=arc-20160816; b=t1CcTprMLOIcrhNJKDXQiH5UmgeysiQxoS7aCXCmBI3fLW/gxVQ6/3TigNdM2cbm0a 9BscMPm36MsSG6eanduckPOvG71TRYmLIuYNsA5JBrW2rO+oB5SRr4AM0rYMakPxumKI 33uNkiFmlL1HtYUjF8wPTW3OUAN7Z6U1shZydiNQL5WAvcJJ3ll1Af038UGQLe4JXNSC CX6O9fx5UAFkE6IyYlCtG6F5WxVddZLHCjPm+VLMNi2AFV5tHjdH83znm216Ybk1R1M0 aKAQw9nylq8ssIPRU/Gm9ZVBTdcTmDZM4+J7YV1kTqumUWz8ryqtQS6hEfyBWeNU31yh OVyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=V13PpaB3KG5lDDATU2PKoVfvcPruYli8QLq7z3xJ5/U=; fh=1xYcbZSJWdZbtfPfctHa0xVq8N/aVputpWQWKc421eQ=; b=Rxsx8ngM+f7RNPsM3KVN1hLnEtAgvPbg+Nr+z4f+lDKrDJZkUaiYLuEtGV/7yk4pu2 Bv+N2IlZvLgWUz7COKwapfy5z1NpKGt8galpwaRxgMgyBil3CM0KsVi5i3oBrcW9jSr6 iDHxNWLlplbn0tkUacqWdBCiiu71laS/VP/X5KSpxhsMsxDoFvAsJbmDWkkBP/a/+hFH 6tcj/gsy3y81xQZv9Uv3RD74ixp6dJXWOL8pwvGRyR2TBnhmMfZTC+GeCb9URNDp7Wf4 tCpH2MZ2PrdZC2y+1liKotDhleB3sX0H94JKWATeyon07dAwDfZX+jZk9fW5k7ASOYIY MSYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Drj40tje; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-211430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de262bf31csi8604802a12.384.2024.06.12.04.43.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 04:43:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Drj40tje; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-211430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5B88DB23B88 for ; Wed, 12 Jun 2024 11:43:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CFE216F0C6; Wed, 12 Jun 2024 11:42:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Drj40tje" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A5726F2F0 for ; Wed, 12 Jun 2024 11:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718192573; cv=none; b=rNRR7LEs7R2QTStSissXGScr+mNtwG2Imj53YhAUk+IH+bfikqI2xRLRIkTD2xyxgm2DCGW1CmlIkv6wrkVKQ86R9cL5R7y4mcMBBjexT0GXLVK9VbFsXqrmHD2lh2J2zANayA5jFemAqhxSGmUuhTxKnqAZiUwKUX4WYPzfrnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718192573; c=relaxed/simple; bh=VG/5YfDV7FzQQEF4wHeho7hrq7jCrMwvwvG6FPj3wa4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=YBEsDUtveq3tCexwwbjKvGoXcGHjoTK6JcOzyMLQHU1DvMcEtQQ5I0DwtSUK+mCAp98M26l+1HkTV4nTljoO7EKPp+h4UTx2plztERTqTcySodpAbRWP7OaNN6qUzA/UZlpLt4aQM+rUMvLgw3nQzzFGITcZpG6uwBaMgw+ePms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Drj40tje; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-52bc035a7ccso2451934e87.2 for ; Wed, 12 Jun 2024 04:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718192570; x=1718797370; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=V13PpaB3KG5lDDATU2PKoVfvcPruYli8QLq7z3xJ5/U=; b=Drj40tjeW+rcgn70C7wu6aYs6rgFWjtyJuCV8QOfQVvT8rYzZrRHpVK1S47EJM/tKj EPWWb7ZV7A38b4HFcVh669uIbGkEnosnqpuqeaaRTg1VowvKvl0LdmlqmyhpoNxTaO3L MIQNcT7hfgYMiWvPK007VBKHSd4Uc30ZBtFJrSYS+PtIuffUmVO1M0pwhQ3CcVrPuWLY V6NsIJXyTpZahXBVzb9zZ4shNJutIY5g5X3fMI3NB6sfr28+GTKAeT19aNWTmMQwCNLj FnJVhHeZhG6tmhtJLkKl7OGUE/TzDjlwJT3li3H+ZE/4mKajw0erINfb7Av/9n+ZINWZ 5kQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718192570; x=1718797370; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=V13PpaB3KG5lDDATU2PKoVfvcPruYli8QLq7z3xJ5/U=; b=PsR/pwGXh65TRtzgoZ1SOya4Z6FrriliOeD/5tuwsx7/InCrmhbPVS5ZX8IVA2mgEY RjCcACuY/8ndc0fW3l8qB7j9Z72N3i4Xrm93YjAPSovQ5OLfq6tXz8YoHSDbHoWjJ5o0 oDPkR83U1JmYXNJivWg6k/uypN6zl00FdQV5ssJPEO7jsGWja0bjpp7yv6xHHHrItAU3 n4i55Zf/uzSAizySlnX89T6GSuylGdGj2JmdrONvCE8JJPJhIbZgDR8WPZa3RY2Bv5E8 NY4NkyTIs897oP2p5t4ItVHQTMixBbFSj9Itn369iI2iNOOh8XuRPn00KXHCfQYpAKyp cMiw== X-Forwarded-Encrypted: i=1; AJvYcCXnSRs9L7oamBATX8KoxgBoR3yDtJx5SR30F4w5S5kXQESEaaCWOHf0A/YPWSrU2geg5lpwvz/R1UIIDjPHqwdG2Jfw44/i+fS+Jz5g X-Gm-Message-State: AOJu0Yz5foZuvutr/1vzWA4/h49J8Zp31jzcvtszOUKZf8v2iwOum/I2 t/udon7/KfzKrhvClMosXiIBI/sU+uQkxZPV6DxJJve3eiFqXTG9 X-Received: by 2002:a05:6512:3d1f:b0:52b:d48e:32e8 with SMTP id 2adb3069b0e04-52c9a3fd878mr1068065e87.45.1718192569743; Wed, 12 Jun 2024 04:42:49 -0700 (PDT) Received: from latitude5580 ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52c82f8cab0sm1664147e87.31.2024.06.12.04.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 04:42:49 -0700 (PDT) Date: Wed, 12 Jun 2024 14:42:34 +0300 From: Kalle Niemi To: Kalle Niemi Cc: Matti Vaittinen , Liam Girdwood , Mark Brown , Lee Jones , linux-kernel@vger.kernel.org Subject: [PATCH] regulator: bd71815: fix ramp values Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Ramp values are inverted. This caused wrong values written to register when ramp values were defined in device tree. Invert values in table to fix this. Signed-off-by: Kalle Niemi Fixes: 1aad39001e85 ("regulator: Support ROHM BD71815 regulators") --- drivers/regulator/bd71815-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/bd71815-regulator.c b/drivers/regulator/bd71815-regulator.c index 26192d55a685..79fbb45297f6 100644 --- a/drivers/regulator/bd71815-regulator.c +++ b/drivers/regulator/bd71815-regulator.c @@ -256,7 +256,7 @@ static int buck12_set_hw_dvs_levels(struct device_node *np, * 10: 2.50mV/usec 10mV 4uS * 11: 1.25mV/usec 10mV 8uS */ -static const unsigned int bd7181x_ramp_table[] = { 1250, 2500, 5000, 10000 }; +static const unsigned int bd7181x_ramp_table[] = { 10000, 5000, 2500, 1250 }; static int bd7181x_led_set_current_limit(struct regulator_dev *rdev, int min_uA, int max_uA) base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 -- 2.45.2