Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4168911imu; Mon, 28 Jan 2019 19:04:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Me+lm/iYi8ka4BFoEka4Tandzpp/GsnL6NfcHXIEziRdwr/IIXDxHm4L/G7565hOaiaxy X-Received: by 2002:a62:cd1:: with SMTP id 78mr24364649pfm.219.1548731086798; Mon, 28 Jan 2019 19:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548731086; cv=none; d=google.com; s=arc-20160816; b=fpaTF0C3JtFiSInEMrE1Wg67zYn1rXo5XMUs7CabgU4M45zMR8/OleWX2CYLsxP2r7 1+LlEN3MObEkriAI19wZy1LDt3Y307N5+TRDee5nxVYRaWWrl4Jgnm0jc2ZdYkxMSNfG zDdHNDND9qW5zcEU4EhaB0X1Y/WmTogCfQ8bNl202kvxgDvGeqlSESIRxiDI0CHMXWhF ulUBGIlO/DocVcMnmTrt+Z7R0pIifmqpnFdEcG8zTGTFqdKvQvJ21beVbMnDjEIFREzg 6tSCFETepd3TPPSAsbsdehkVEWH6rT0bmaOGmHXdD3a7J7HNp4JqJjdRPSMTktfI2tu0 aX1w== 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=72dDdZJ5A4m6E5P3LyHYLFeZ/0gErIEm2c23v8DYUGg=; b=kUuH6m29pyqBtOGqfQZfhcTQ2o188/WbLbZHOoiq6xL3ZWexYfDHwNBRPtvrwwLLdR ZpUkH/rcRbjqF04efkSYw/PCGjES6NBy9GTUe7d+S+B/1ztSfXpup04kAfJ6Eakmmr6p JSMGFhccchQCRlx9tNShO9Hsr3M0rU82Wk1/FnSyBrzE5cZLnGLpjSv36suTq5TyXfJi IPnZTyjee/t7vx/RHV6ZvVN3koWn3EWamIkt12eG0p0jcYF/OAznB1oY81FBQbAKPL50 ulqGGQ3puMa6LAiJH7abf4P4BR0Pks6VkeEyulJrN3ae3UFGE+Ww/AhsOOMIjNHF9UMS jEuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=rIc++Xlp; 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 n18si34852712pfj.30.2019.01.28.19.04.29; Mon, 28 Jan 2019 19:04:46 -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=rIc++Xlp; 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 S1727210AbfA2DCN (ORCPT + 99 others); Mon, 28 Jan 2019 22:02:13 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41591 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727065AbfA2DCN (ORCPT ); Mon, 28 Jan 2019 22:02:13 -0500 Received: by mail-pf1-f195.google.com with SMTP id b7so8964239pfi.8 for ; Mon, 28 Jan 2019 19:02:12 -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=72dDdZJ5A4m6E5P3LyHYLFeZ/0gErIEm2c23v8DYUGg=; b=rIc++Xlpag/VrgZSALJBc3AazDoIBtSLjFXkq3j8gQqGetivtebFlbG0sqYzVut1fQ qVLHT52X+UyIrUTpuSTuShexqaQXYDC2x9pVbeCDPFQA/ImBn0dMGlC5fi4RNopTfbGs z8FSpu5H00shK6EpLf4Uj4Wv3xXWenvjAIITzhdN+P3oJwz3B6oKC8AsxcyRfzU1WoYR 6P/+AiRDGeDWGNi5Ui4+esPcYBMDKkup7b2huxnApuwezkFkzbl9YVI0EyvCPJi5Smj/ YxZWt0j2Jie1Vb437QD3Ly/oRI0DfUjXdBO55lmqih17mV2sz+oHlL/+AuHARrgdqlwa 8Rug== 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=72dDdZJ5A4m6E5P3LyHYLFeZ/0gErIEm2c23v8DYUGg=; b=gD8ilSUP7/ySpJtYSnd/+2pQzdqw342UIz9z4h72IkzWVhdDAi2akBbiHyIojxQGOM KdUpKV+K+LnAB/wNJ+FH7OhNAE2FKXlibR9GuVK4udwzzkr20BEMF5mVZF/CS3hezZf4 +8mtUlT8tIfzwc/CAfsZyAXu/Top/dCnwmJv6Vjq9IfWc1cLHIivLIGvvt6OnXziKhch nCsPGrlKw0gm5GdLCJwoRr1iRIKoHk0iJlQckUsJOGc0FuhPjDYTV4soTOVmduDHTwGY jHhXGGXvncw3YP/HBM6ngxAQWythDzyvdMAafkqWcjgiB8teXU4Xyk3J9Iv4sj4iPZTz ARKQ== X-Gm-Message-State: AJcUukency2FzS6N0d3YZfxzeumub0PFHlF2ujUXxXo5MX5BF7BmjYo2 Wzi8G/h4l4AW1hpH3qr0tLqYkA== X-Received: by 2002:a62:5301:: with SMTP id h1mr24210826pfb.17.1548730932277; Mon, 28 Jan 2019 19:02:12 -0800 (PST) Received: from localhost.localdomain (36-239-242-165.dynamic-ip.hinet.net. [36.239.242.165]) by smtp.gmail.com with ESMTPSA id i4sm58807646pfj.82.2019.01.28.19.02.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 19:02:11 -0800 (PST) From: Axel Lin To: Mark Brown Cc: Charles Keepax , Liam Girdwood , linux-kernel@vger.kernel.org, Axel Lin Subject: [PATCH] regulator: lochnagar: Fix n_voltages setting for VDDCORE Date: Tue, 29 Jan 2019 11:01:56 +0800 Message-Id: <20190129030156.2024-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 With current n_voltages setting, regulator_list_voltage will return -EINVAL when selector >=57. The highest selector is 0x41, so the n_voltages should be 0x41+1, i.e. 66. Signed-off-by: Axel Lin --- drivers/regulator/lochnagar-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/lochnagar-regulator.c b/drivers/regulator/lochnagar-regulator.c index 4962d13659aa..ff97cc50f2eb 100644 --- a/drivers/regulator/lochnagar-regulator.c +++ b/drivers/regulator/lochnagar-regulator.c @@ -194,7 +194,7 @@ static const struct regulator_desc lochnagar_regulators[] = { .name = "VDDCORE", .supply_name = "SYSVDD", .type = REGULATOR_VOLTAGE, - .n_voltages = 57, + .n_voltages = 66, .ops = &lochnagar_vddcore_ops, .id = LOCHNAGAR_VDDCORE, -- 2.17.1