Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp645381img; Thu, 28 Feb 2019 05:41:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IZgGxFaHmg2zgnDkOxaSXBEvVFtMbiN8Twu6LgnxlJk977sETXn8M2ThOReRd1ssZrcD5As X-Received: by 2002:a62:fb10:: with SMTP id x16mr7562655pfm.5.1551361293001; Thu, 28 Feb 2019 05:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551361292; cv=none; d=google.com; s=arc-20160816; b=we0g8QXqsnzv9xtaLqwip1ee6qCkZY6hoGaCWpZAXBGbWK1GOVBIdh+HOV1UInt8q/ tF8GVl1nL+mbbFs2MYMGyxsV3VLvSxzvzK+dx45sOTyaSdJ/UK0FwZPkxsQ6nw6BsT8N avML+pV5aP7FsH4XTrDYp8/UXQMVDsc9swNTkp/eSiDqiDgJ9PXkZXYg7QdXNWleKWZr 1ikKS7fzP2NYC9f35K1Q16fKFQ0lntqEvJew7B3qYlCCgDVp+wXSGieI/CiuL5jO/R1+ zA6qULwGRCZRcYGRqF/b+twaEG6ucQTDtqUnwPO06FNcB0edP60bxPmK1y1/mV1PVO9+ lyKA== 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=QWIosyhlwuMTZs4JoGxaDk24R9n0qYCEPchN/8bY0wA=; b=uznTBaLUjyTwnEwUR18BQRGJBJPAQEAgSY+/t2ALsEzVXg4+0o+zsyxUN4UmBmgsqO E1gYriYNtPI3Vtu3MOdTLQ7kMTLcdhzqBYDNkk3qOXPEEVa5otJNrwgIsjNcgJJ1H0sf 3MCwTFHONGlaZwipvV8+yUP617e8rxOHZFJflluHDA794/FIp0I1aVIvLY+DpJbK+37Y o8Ojg8rTUqECXJYrU/UKmgAGS99CtvKsoZG/ZvahqNIlK3BmrZEH1T2ev3D9UMYSCDHY MahDjJ1FTWF+wjMMQHek9rXkmi5Ph90HbnTQmpY+RgnaMU5h7UeSOjH3gmaU5Uq4Ngdh KzGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=TJXBEQR4; 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 j66si19138175pfb.182.2019.02.28.05.41.17; Thu, 28 Feb 2019 05:41:32 -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=TJXBEQR4; 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 S1731065AbfB1Nko (ORCPT + 99 others); Thu, 28 Feb 2019 08:40:44 -0500 Received: from mail-pg1-f179.google.com ([209.85.215.179]:36066 "EHLO mail-pg1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726806AbfB1Nkn (ORCPT ); Thu, 28 Feb 2019 08:40:43 -0500 Received: by mail-pg1-f179.google.com with SMTP id r124so9750568pgr.3 for ; Thu, 28 Feb 2019 05:40:43 -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=QWIosyhlwuMTZs4JoGxaDk24R9n0qYCEPchN/8bY0wA=; b=TJXBEQR4m+2Gupg4wXEsv0wd0Xkh5+NBNfX1jJiZQlV/t5Tq0lzJ7ID/nIszOKbh7B xGBnx4Gw4m6hYcZYt4iwz7fIoS5G2jcOPmQ3OPMUD/sTGCO1aWDB2QVJCX30x6qf31KP BFhRZg+/FbixoYq2Hjq2PjCrKOPhTBoTftcoUI3vmAx6WbeBOGmW0vXUma7rWaU3DWMt eAM0/KlhRdz5pNW2jJ9Ai2IE4DuhGJWzOSVy4SvV8kpQ49cz8O/WAd4koAu8Rly3OqJx VBRHGIBDFfheA3/e+ZVZJGcmRvcQ1v2NuzRUfTd6PCPGxZ6cehlXdB5BK9CrQ/uMF9R/ Gqew== 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=QWIosyhlwuMTZs4JoGxaDk24R9n0qYCEPchN/8bY0wA=; b=NDxIXXfG+PyJHPB6Jhmj5g3XY1DNVV5vq4qpx4WWM+W5EZcPIF0mdLHonxIen7FkjG rlxm8wkuDPt2DNL73qaZKjNGopilb9JZyE04nFTfY2DBpzrYm5rDdQhhEtVhZvW3j086 HgSyfwC+i8J/ZcrJ2W8ptcjtkrN4YinhbUo+R4eWFdebmt0iQgkxmPd8STCPDW9G8AmD J82ITN+9SVUQ0hzUVfHEzIK96YLy6nbBG6U+xZBQ62SNXsabdYuRQELLMeYzT9xDCdST b3u3J3U8VBoJ7RUn4OVe1Dx+a/fxoWEQfq66WzHgULuwVOX5vvav6AeDK1Rbtd8ghkQO iEXQ== X-Gm-Message-State: AHQUAuaJwEEucW59TTA/ZSJv4Xy5hmDW9cpl325Qtm/jb9AnE2yqfAhl ueEvVRdGY0PM3cp4PG71m3NMgg== X-Received: by 2002:a63:e90f:: with SMTP id i15mr8525697pgh.430.1551361242368; Thu, 28 Feb 2019 05:40:42 -0800 (PST) Received: from localhost.localdomain (2001-b400-e706-b6eb-8c00-6a08-1689-4d5a.emome-ip6.hinet.net. [2001:b400:e706:b6eb:8c00:6a08:1689:4d5a]) by smtp.gmail.com with ESMTPSA id 186sm36777133pga.36.2019.02.28.05.40.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 05:40:41 -0800 (PST) From: Axel Lin To: Mark Brown Cc: Support Opensource , patches@opensource.cirrus.com, Ashish Jangam , Steve Twiss , Paul Kocialkowski , Milo Kim , Keerthy , James Ban , Bartosz Golaszewski , Liam Girdwood , linux-kernel@vger.kernel.org, Axel Lin Subject: [PATCH 00/11] regulator: Add set/get_current_limit helpers and use it Date: Thu, 28 Feb 2019 21:40:11 +0800 Message-Id: <20190228134022.32625-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 This serial adds regulator_set/get_current_limit_regmap helpers for regmap users and convert drivers to use these helpers. patch 1 is a comment fix for existing csel_reg/csel_mask fields. patch 2 adds n_current_limits and *curr_table fields to struct regulator_desc and then adds regulator_set_current_limit_regmap() and regulator_get_current_limit_regmap() patch 3-11 convert drivers to use regulator_set/get_current_limit_regmap helpers I don't have h/w for these drivers, so please test it. Axel Lin (11): regulator: Fix comment for csel_reg and csel_mask regulator: core: Add set/get_current_limit helpers for regmap users regulator: da9055: Convert to use regulator_set/get_current_limit_regmap regulator: da9210: Convert to use regulator_set/get_current_limit_regmap regulator: lp872x: Convert to use regulator_set/get_current_limit_regmap regulator: lp873x: Convert to use regulator_set/get_current_limit_regmap regulator: max77650: Convert to use regulator_set/get_current_limit_regmap regulator: pv88060: Convert to use regulator_set/get_current_limit_regmap regulator: pv88080: Convert to use regulator_set/get_current_limit_regmap regulator: pv88090: Convert to use regulator_set/get_current_limit_regmap regulator: wm831x-dcdc: Convert to use regulator_set/get_current_limit_regmap drivers/regulator/da9055-regulator.c | 45 +++----------- drivers/regulator/da9210-regulator.c | 53 +++------------- drivers/regulator/helpers.c | 86 ++++++++++++++++++++++++++ drivers/regulator/lp872x.c | 70 +++------------------ drivers/regulator/lp873x-regulator.c | 45 ++------------ drivers/regulator/max77650-regulator.c | 74 ++++++++-------------- drivers/regulator/pv88060-regulator.c | 51 +++------------ drivers/regulator/pv88080-regulator.c | 55 +++------------- drivers/regulator/pv88090-regulator.c | 53 +++------------- drivers/regulator/wm831x-dcdc.c | 42 ++----------- include/linux/regulator/driver.h | 11 +++- 11 files changed, 181 insertions(+), 404 deletions(-) -- 2.17.1