Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3438354imc; Sun, 24 Feb 2019 05:17:40 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib1gLtZCt6Z1pyASQ3L0YLNwLQ8RGUF1t/WfpEKoOyTns+RxMjLIdTywWN2cuFboVAmyUIM X-Received: by 2002:a17:902:8f81:: with SMTP id z1mr14351356plo.265.1551014260744; Sun, 24 Feb 2019 05:17:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551014260; cv=none; d=google.com; s=arc-20160816; b=uS/YiInVqNVvHgyrRTmCwHS7XfPzPKtRT1Lmjb+0iAQ/8UHyLadM1T4sw/+QR1kuZY FbnmBqLrbMpcJ7RVGLCCEEj1tNGos0De7j4GS9CC+U//KdCBh9gKyciNYd8aVDG8qxY8 Gzw8VUBCaXtY35+PYBgt4KK3SbDqJO53qjWRpTvUuDaKNRM+vSSACj5fAjCopCD7gZJS tMvyTfAvIlbKkpRVahwnXncL4S041v7zUkJl65mONwXNY6JPaJiprkLg1ztmfUU7VBwd CRoqc2QScNBtzS6B5Xl4vrZfNVzn1nVJK0j+VxHuCFVbfQ31yqa8pRbBlE0m2F4veME9 Ei+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=FMN/0tlZxmne4krJvQF11QGgjURkPq81IO63zBf4eQs=; b=vEvrw2WkMlMT89qHODGwWRtb7TgRtFuJyNkzeesntBb1UG3NnCuEBcyCcKs0TX47Hy z12yi+sJqzs9uHMdcEbKg6D/+NXdiqdPWCzO0wRDKOzP1vBXTXRkGCNIECrBOxmiScKZ PwCzWEO5FKw6ccNxjxpuvbZpXrY+6/g1jKX95jdil2QpeyzY02GEg0VEMaTwJ5qo7bv9 /QoeHZXLVAkjn1ECodRluVLn9OQVBPQzmZ3YkjSlZYUyN4ZbmH1Crf+91+B6m1nCbUug XFzWOLz8BInDyYIrVdXBw4ycEkPGiTFuQTcXINEFGharGbFDXUo5VQe5UANzv3cyPcpP BzIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=UDDAcq7X; 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 n78si6188786pfi.243.2019.02.24.05.17.25; Sun, 24 Feb 2019 05:17:40 -0800 (PST) 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; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=UDDAcq7X; 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 S1728187AbfBXNRF (ORCPT + 99 others); Sun, 24 Feb 2019 08:17:05 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45663 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727594AbfBXNRF (ORCPT ); Sun, 24 Feb 2019 08:17:05 -0500 Received: by mail-pg1-f194.google.com with SMTP id y4so3197445pgc.12 for ; Sun, 24 Feb 2019 05:17:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=FMN/0tlZxmne4krJvQF11QGgjURkPq81IO63zBf4eQs=; b=UDDAcq7Xo4utKNCRIdvD9br4ZKafcu5yl1jdOXiDYNmOr2/+NYqEANAzood0sdXQ86 e4jQlif5EkYp3LTwYivyGcUYjEYfqfAxiAEmoYSZ0CtJWzYHe1a4ljkCNTlCPJ0pnEnC +4i1U3A+JMbBRCYCdFIbhUjL2z2bW24ycOvLuCIGUXQZX4TY/D0/w8OivJ1oTMky8ltq RF9B1jrOXzizumIt0hWPUOukwf5kLY49Gsf3rheBrTPXWCwAbvbDpYkycXvVsiEbgGKC 4Y4b4GpkJa6Z5iHoSMOQdaTAJZD/+0Go1KOp95q55Ao7QdbGnHf3UbrBWeUgkSJvDKvg pSUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FMN/0tlZxmne4krJvQF11QGgjURkPq81IO63zBf4eQs=; b=YcmKN+1wiSx2Mrau1qjcdU7AK1L4KVtJ/fARxWDRn2eVPOQ1bfkX1HyrWEUJnzsNxw 5tT9w/62LMr7CDbiHjkzpTaiqme6BpVT9+PFfr0QUplyWjmngIecrVhLTVO3WZCFpGPL Q72ol3hwcxoYeULCjaOBZiu1gWTBfM8k7TS6r4PdTyHFj7OFV0gO1f2MlSJg60l0M98G dHBzmhfVDmzRWgHMA36KGuc56gVprMuTG8kuiMc85g6xP6ZLSO/5B+zHu0oJiyXWOQhR hvA9vQW1/5fMI7EK9JfwD/NHc2KPb6MJBthyZUjehCrjG/knRRhYE48qH5Jxa+PA6PEc hWpA== X-Gm-Message-State: AHQUAuYtirJK4kWQLior2HyyT+ikH+sJl0di60uGt4c/4LutTJw2Hl94 DH0Rr/sCKGOr8Q1P/ZC7yGbnSg== X-Received: by 2002:a65:64d9:: with SMTP id t25mr13190426pgv.244.1551014224344; Sun, 24 Feb 2019 05:17:04 -0800 (PST) Received: from localhost.localdomain (118-171-128-111.dynamic-ip.hinet.net. [118.171.128.111]) by smtp.gmail.com with ESMTPSA id 23sm9055666pfn.2.2019.02.24.05.17.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 05:17:03 -0800 (PST) From: Axel Lin To: Mark Brown Cc: patches@opensource.cirrus.com, Liam Girdwood , linux-kernel@vger.kernel.org, Axel Lin Subject: [PATCH] regulator: wm831x-dcdc: Fix list of wm831x_dcdc_ilim from mA to uA Date: Sun, 24 Feb 2019 21:16:51 +0800 Message-Id: <20190224131651.11462-1-axel.lin@ingics.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The wm831x_dcdc_ilim entries needs to be uA because it is used to compare with min_uA and max_uA. While at it also make the array const and change to use unsigned int. Fixes: e4ee831f949a ("regulator: Add WM831x DC-DC buck convertor support") Signed-off-by: Axel Lin --- drivers/regulator/wm831x-dcdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c index 4a573eea284a..828f262d6be0 100644 --- a/drivers/regulator/wm831x-dcdc.c +++ b/drivers/regulator/wm831x-dcdc.c @@ -304,8 +304,8 @@ static int wm831x_buckv_get_voltage_sel(struct regulator_dev *rdev) } /* Current limit options */ -static u16 wm831x_dcdc_ilim[] = { - 125, 250, 375, 500, 625, 750, 875, 1000 +static const unsigned int wm831x_dcdc_ilim[] = { + 125000, 250000, 375000, 500000, 625000, 750000, 875000, 1000000 }; static int wm831x_buckv_set_current_limit(struct regulator_dev *rdev, -- 2.17.1