Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2197171imu; Thu, 10 Jan 2019 09:51:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN7xYzfAMWTN7ETKc2b0d9n3PX/NU+aUSBlla6YlU1tEMjAHgSeMXy4Rc7jgY2lJoaD9dFpT X-Received: by 2002:a65:4381:: with SMTP id m1mr10059177pgp.358.1547142687862; Thu, 10 Jan 2019 09:51:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547142687; cv=none; d=google.com; s=arc-20160816; b=DpUAsIHYuVTozyfZh7VbaVKBw2DGMw8LKuOUD+NpVS2XjU7LhIE+tVaTPgz8GyLDdu wzVUkBszcqeiLNyY5oyUKqY7Br+M2GZPR49rZIouQCJDGVEq2ypnbG6vz1LT4azROGy8 P7XyceRnWIjz6FBVopnH009wbOARpIYir8hrZ77XkW1ODtMrMqgq9wchLbrkM5dqVcGT YhotsQ0/Rimg/Ma3TY/ULbIAtIpnYXNNRYIvTxSN04OmcODkycl+tXvtV079iEVmZlWi cMFV7aYcb8Ktm1ewRdGJ1ITaWJZZcFD/frbwRwy4ovp34ZDHBXwO+6a8KIr0zBeOm5Lx 8hVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=MZa32Esg9K4ZsfnV6hTpp491c1VoOb1/+Xb5dttpej4=; b=jxFR7IkijenqMGmvJJwqbDmX2nX8JOzAcMaazJOBsnFVRj8P07jH2UVO/0loWZek2x nuTDhpieloteHWMAx8p91ZW5BOSUyewMIXKkeL/9nQ/CxxzRrY9ECk6XMIAuDl2Nr8/M ZmCZEXhyYSJeEzoqlY0WTczF1/bVLo9tu1BF+RbyvwvcAAvJMnVkWbNndIL8FtMipZip qwiNuhyQayrzL2KItvQU70nPh8Ad5CG3TeG7DIOSwa9/6T0QdNo7IqLgQXyh3IPGno1W VfH/3MtaHj6MJltbX3tsI2BiCaaoDXlec60FFJJasqaizqu+1daWvnWrmPYffyl7gqnm z2VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=valmmHbG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si12041732plx.159.2019.01.10.09.51.12; Thu, 10 Jan 2019 09:51:27 -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=@gmail.com header.s=20161025 header.b=valmmHbG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730573AbfAJRt0 (ORCPT + 99 others); Thu, 10 Jan 2019 12:49:26 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:37353 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729480AbfAJRt0 (ORCPT ); Thu, 10 Jan 2019 12:49:26 -0500 Received: by mail-pf1-f193.google.com with SMTP id y126so5643663pfb.4 for ; Thu, 10 Jan 2019 09:49:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=MZa32Esg9K4ZsfnV6hTpp491c1VoOb1/+Xb5dttpej4=; b=valmmHbGhRymwmoxbKdFLXs6pRkn5OTySqmv3loIv4U5cr8QVuyrdK2bcYCnLb+XKv JHthmunbiC0vHUtVP5uQSKF3Vbw0H8q43oamrO94YG10vvKmbU8gZv6T6aqzU4nycAtw lMi16KFUBduOL5erllRAq4EVj/y4kXHRHE7HOtw/wFWsh8775QVbv+i+bgKON6KbDYAT Nufc+qNtY82yMSP0T38IoxhbLa2ZEM24U31Os/q7d4J39vNF/oK5xwDRz5VsMrekx1zE N/NFaYsiphjUruo5UebppIPHsL/T4Eu85Ef02S0kFoug1C1lhQGFnvwypBdFlhkVE2Qb YfIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=MZa32Esg9K4ZsfnV6hTpp491c1VoOb1/+Xb5dttpej4=; b=ZvminCjpTwRLxAVxPRqsYocrjOQ2eFJmF1S7mSMJDbIkhKKJQmvGmW/c3TtLH5cNWw MzHnIr+qTS5u8AmfCtx1R3QqClt5577EmehxYsvPz2BLEseohnIptW5hNVcz6QRS88s+ 7CoAlMetP9SPu/XIoxibRBSw93KT12UXprEToKXMRs0VdHI8/zJTck7S9OjvGnpouFTD Mc1YQr7VaTqL9QN4y5dMXtMzKY2M0WfM5ekALZuCCkn5+EOo7seLE+7VSolwPTYqmkTX LUjs/y1sRzdrPgXnWqH7esdsO985AHHSqY+UhMySD9SvxHewc9+dIyDEViKnl2oowRU7 wdZQ== X-Gm-Message-State: AJcUukexLFKlpFccIL6BFBftbgNeVSk+UubdWm9yXL9yyoP85S7kqI+u Ov4zZQnkSwrWRwDt2bzmhM4= X-Received: by 2002:a63:5320:: with SMTP id h32mr124247pgb.414.1547142565381; Thu, 10 Jan 2019 09:49:25 -0800 (PST) Received: from nishad ([106.51.25.107]) by smtp.gmail.com with ESMTPSA id g136sm123349338pfb.154.2019.01.10.09.49.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Jan 2019 09:49:24 -0800 (PST) Date: Thu, 10 Jan 2019 23:19:18 +0530 From: Nishad Kamdar To: Johan Hovold Cc: Greg Kroah-Hartman , Alex Elder , Rui Miguel Silva , greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Nishad Kamdar Subject: [PATCH v5 0/3] greybus: gpio: Switch to the gpio descriptor interface Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series converts uses of the old GPIO API to the GPIO descriptor API. It also converts the GPIO driver to use the GPIO irqchip library GPIOLIB_IRQCHIP instead of repimplementing the same. Changes in v5: - Drop the patch which uses gpiochip_get_data() in place of gpio_chip_to_gb_gpio_controller() as of now. - This is because it currently breaks the driver, since gpiochip_add() sets the data pointer to NULL. Changes in v4: - Changes mentioned in individual patches of the set. Changes in v3: - Combines the latest versions of the three greybus patches together in a patch series. Nishad Kamdar (3): staging: greybus: gpio: switch GPIO portions to use GPIOLIB_IRQCHIP staging: greybus: arche-apb-ctrl.c: Switch to the gpio descriptor interface staging: greybus: arche-platform: Switch to the gpio descriptor interface drivers/staging/greybus/Kconfig | 1 + drivers/staging/greybus/TODO | 2 - drivers/staging/greybus/arche-apb-ctrl.c | 154 +++++++++------------- drivers/staging/greybus/arche-platform.c | 124 ++++++------------ drivers/staging/greybus/gpio.c | 156 ++--------------------- 5 files changed, 115 insertions(+), 322 deletions(-) -- 2.17.1