From patchwork Mon May 14 08:06:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 135668 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1438912lji; Mon, 14 May 2018 01:06:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqzfLxe2+kP0I6Nq9RnxLlgGyYA4f4GZsaQpSLEEZzwgk92MX7O9HuzZpw63U4eWgUrVYLz X-Received: by 2002:a17:902:b585:: with SMTP id a5-v6mr8923705pls.53.1526285212381; Mon, 14 May 2018 01:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526285212; cv=none; d=google.com; s=arc-20160816; b=Iqt18TJ9/EB7n3ApVxXJnU6jFLCUVGl6R6aVHXOJn6I0/QVHTpXm4JK76XXNpiH4v3 k9ZPTyWqcDjT9DriP2xDDK5zkDoQ+usGXVtQC4MAWL1+vFpyXT5AUNNqHiNg/lywlPAo IFnkoj8JFcywpj0J/hCH/eS46wZTVfoh89+aiYbOV2E6hSaaXjdbjnIW8iO5xcwk3C6l riNtM/fP+mDaAWYLud/PAMcHLnKubiJabYHVkeaUVLJKLrNA5MR9IsQmfwRuy0aCmIC8 nuhZLSv4QSQpCDq+PN/Co5Ypk1YFexVs2jITOfCrqq/f9pvBkKBGRRyCBYyUzuNJGC+M 7GOg== 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:arc-authentication-results; bh=c9DR4FKU64yQpiuKlK8mrDVJ0qEDxNq95VyOCCnSZ/g=; b=m4WWtcdRWUHE4P9Uo3I5k7si18VowWkndm61FnvnH+cUAO205jFzk7ii2BIxXfByKm LuQU/ODeivWUubjXuTeit/iCLAZSRGSwWauMnaT3SxxtY7KjCgy0SPfdTl9Byq7kTExa u+XBqTqEoMcaWfCA7hHNtyp3zCiQyc6vox+8yJrnljj0fOFQ5ExRwFKnIkV3sL02qEEF tY6LncJ9KlDyZjn74DWqD8sGv3xaHx9CeGmG4H3trr8mIi05cy6kGb1pRREolILstoGK 1+o1kca0XlfjdMXIhReoRD1zKrkk55IyEucRBqltm4wlVPNbE7qlkoybFvyFIQVQmcFx Ji1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J3XlBkro; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si7283733pgr.681.2018.05.14.01.06.52; Mon, 14 May 2018 01:06:52 -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; dkim=pass header.i=@linaro.org header.s=google header.b=J3XlBkro; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752129AbeENIGt (ORCPT + 29 others); Mon, 14 May 2018 04:06:49 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:42343 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751099AbeENIGr (ORCPT ); Mon, 14 May 2018 04:06:47 -0400 Received: by mail-lf0-f67.google.com with SMTP id b18-v6so15831034lfa.9 for ; Mon, 14 May 2018 01:06:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=c9DR4FKU64yQpiuKlK8mrDVJ0qEDxNq95VyOCCnSZ/g=; b=J3XlBkroiRahXVC6nd7tuShd+qMebyHHybMeu7I08Jn9FwDA9Ezq0ltsNWYhhkRQkB yiXoH/gwjFBFgZrKoehEoITfDk+lmynQt2FZUwy4EU1XrOnabs9MB2XvSd55rtYvsgBS hUQlnPZt7Uh0bkc10oUAdMWpIbz/LOZyf46Ak= 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=c9DR4FKU64yQpiuKlK8mrDVJ0qEDxNq95VyOCCnSZ/g=; b=X9Jcb9iXxJzBa7EqmipUVA56Z3+JSoaEx9MV2da/I0rFH54i1OOT9bpqlXD9+kvvYI KuXiUP+utS0+BvlDc7nwDr63l7JE52F9ojucDbqibJLIC80NFTlvbggJo3UZG3NGU0XP OrNHBzfQKX0rRcg8U9zhNwI6O2MLu4G/8arb4cCjgM+bvCTuruqHfUWOkV9QzDtvbIeV gGxcTmZ7DJDZLtdAvbgLOehHGJcFSnq2cyLobsWl+Oeuu6oekhXJJroCHAkb3m6G0xaJ WWk7cghkt+WdWWvgQnYugVqpsZvYKg54yW01ahOGkBNUE5bbDrQQ02SjzBG8CY86f4Yt HOOA== X-Gm-Message-State: ALKqPwepEL0csTokMN9GCXMFMIB8R1Uw6HtAij0dUan10Hw0a4od1Rhm 23hPnfxZcGliZUWNpr6UEzNv6RGy2Kg= X-Received: by 2002:a19:6d02:: with SMTP id i2-v6mr8194715lfc.81.1526285205469; Mon, 14 May 2018 01:06:45 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id s4-v6sm1725265ljh.9.2018.05.14.01.06.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 01:06:44 -0700 (PDT) From: Linus Walleij To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH 00/19 v3] Refactor fixed and GPIO regulators Date: Mon, 14 May 2018 10:06:21 +0200 Message-Id: <20180514080640.12515-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This pulls the fixed and GPIO regulators into the gpiolib descriptor framework, at least more than what is currently the case. This is also available as a git branch: git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-regulator-4.18 Charles Keepax (1): ARM: s3c64xx: Tidy up handling of regulator GPIO lookups Linus Walleij (18): regulator: fixed: Convert to use GPIO descriptor only regulator: gpio: Get enable GPIO using GPIO descriptor regulator: arizona-ldo1: Look up a descriptor and pass to the core regulator: max8973: Pass descriptor instead of GPIO number regulator: max77686: Pass descriptor instead of GPIO number regulator: lm363x: Pass descriptor instead of GPIO number regulator: lp8788-ldo: Pass descriptor instead of GPIO number regulator: max8952: Pass descriptor instead of GPIO number regulator: pfuze100: Delete reference to ena_gpio regulator: s2mps11: Pass descriptor instead of GPIO number regulator: s5m8767: Pass descriptor instead of GPIO number regulator: tps65090: Pass descriptor instead of GPIO number regulator: wm8994: Pass descriptor instead of GPIO number regulator: core: Only support passing enable GPIO descriptors regulator: fixed/gpio: Pull inversion/OD into gpiolib regulator: fixed/gpio: Update device tree bindings regulator: gpio: Convert to fully use descriptors regulator: gpio: Simplify probe path .../bindings/regulator/fixed-regulator.txt | 13 +- .../bindings/regulator/gpio-regulator.txt | 4 + arch/arm/mach-imx/mach-mx21ads.c | 14 +- arch/arm/mach-imx/mach-mx27ads.c | 12 +- arch/arm/mach-mmp/brownstone.c | 13 +- arch/arm/mach-omap1/board-ams-delta.c | 15 +- arch/arm/mach-omap2/pdata-quirks.c | 17 +- arch/arm/mach-pxa/em-x270.c | 2 - arch/arm/mach-pxa/ezx.c | 34 ++-- arch/arm/mach-pxa/hx4700.c | 23 ++- arch/arm/mach-pxa/magician.c | 25 ++- arch/arm/mach-pxa/raumfeld.c | 13 +- arch/arm/mach-pxa/zeus.c | 24 ++- arch/arm/mach-s3c64xx/mach-crag6410-module.c | 55 ++++- arch/arm/mach-s3c64xx/mach-crag6410.c | 1 - arch/arm/mach-s3c64xx/mach-smdk6410.c | 1 - arch/arm/mach-sa1100/assabet.c | 22 +- arch/arm/mach-sa1100/generic.c | 5 +- arch/arm/mach-sa1100/generic.h | 3 +- arch/arm/mach-sa1100/shannon.c | 4 +- arch/sh/boards/mach-ecovec24/setup.c | 24 ++- .../intel-mid/device_libs/platform_bcm43xx.c | 18 +- drivers/mfd/wm8994-core.c | 9 - drivers/regulator/arizona-ldo1.c | 19 +- drivers/regulator/core.c | 40 +--- drivers/regulator/da9055-regulator.c | 1 - drivers/regulator/fixed-helper.c | 1 - drivers/regulator/fixed.c | 43 ++-- drivers/regulator/gpio-regulator.c | 192 +++++++----------- drivers/regulator/lm363x-regulator.c | 20 +- drivers/regulator/lp8788-ldo.c | 32 +-- drivers/regulator/max77686-regulator.c | 19 +- drivers/regulator/max8952.c | 18 +- drivers/regulator/max8973-regulator.c | 54 ++--- drivers/regulator/pfuze100-regulator.c | 1 - drivers/regulator/s2mps11.c | 46 ++--- drivers/regulator/s5m8767.c | 26 ++- drivers/regulator/tps65090-regulator.c | 50 +++-- drivers/regulator/wm8994-regulator.c | 19 +- include/linux/mfd/lp8788.h | 16 -- include/linux/mfd/samsung/core.h | 4 +- include/linux/mfd/tps65090.h | 8 +- include/linux/mfd/wm8994/pdata.h | 3 - include/linux/regulator/arizona-ldo1.h | 3 - include/linux/regulator/driver.h | 10 +- include/linux/regulator/fixed.h | 13 -- include/linux/regulator/gpio-regulator.h | 18 +- include/linux/regulator/max8952.h | 1 - 48 files changed, 527 insertions(+), 481 deletions(-) -- 2.17.0