From patchwork Wed Dec 9 13:42:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 7808731 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E9EC69F39B for ; Wed, 9 Dec 2015 13:42:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1BBDB203DC for ; Wed, 9 Dec 2015 13:42:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48BDC20462 for ; Wed, 9 Dec 2015 13:42:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754495AbbLINmn (ORCPT ); Wed, 9 Dec 2015 08:42:43 -0500 Received: from mail-lb0-f182.google.com ([209.85.217.182]:33048 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751310AbbLINmn (ORCPT ); Wed, 9 Dec 2015 08:42:43 -0500 Received: by lbbkw15 with SMTP id kw15so30218046lbb.0 for ; Wed, 09 Dec 2015 05:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=lH5DTXMuwVnw0bpl1Wrf5omDQ5C0K8oHjl8/BuZJlXw=; b=JXyQBp/R8/rvtHhqeIxQA+2hnel6lTL+VbG90mzxfjh0+bup9YWfQVKL4pXDRTumF9 duIiBd0VoxvKSU9NZjVevfJOYOdyqOxg33ckFGGPI7xJfQV3AQst8OrppMPLSQIaZlog qVuMSuNnjsjWaLIMKGr5yxNH+41jPXhrzQhRgGOkQxapTQFA91qi3o0DKTiupFvnia7b ORiKO+abAarHJNVGgfJXWSUuqTf5huobGRPM6Pdnu363993gpHI7qzElQ/2OOkdvE9Ak PZVIKG0cuM5vb0IhXNaTuNGCgGs5hsKgAl78l9DVNhvxIKPkcJa7hnsdGNA0cYeMq9Bs f+Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lH5DTXMuwVnw0bpl1Wrf5omDQ5C0K8oHjl8/BuZJlXw=; b=c0zoj70KA1qc0mTIlZkg9hlYWszxzsXEHy8btBsgKfyzyH4UDn5eEpD0WlY74OSaYL eaAzy7fkLkxXHYdgH5M0IE6KhbihbWR13JtRIQF3rF53OJbqbVuteUJJuRGOZAcgN3OB VTrOwMQHautUh9zOJqv/verKG2UEqWmjhVCaa/xIaAYX7+x/mUxJv2ZcmEJEYUkVefOy YF19B4pPF3s+jMFrtWoxxi5rQzpNNCfcCkamcjcZ+1jhcGRnKpU8Bh9KJ4LeQqjJcBWl XdxzoVTSNpZS4JCeJ9qn19V8yLaVBu3a6QyL4vxgKRQixMrektzbuwcPPo8BqzDMxvjt UXeg== X-Gm-Message-State: ALoCoQmAooxJb5BpTMvcRbDgHAe5KiCU7mMqQLEj/Q2wxbY5rMZV71SAt9LsA9+A7g8DwVSyP7MfLeTdNV1fCbt5iRA25ntLQw== X-Received: by 10.112.55.38 with SMTP id o6mr1988912lbp.38.1449668561913; Wed, 09 Dec 2015 05:42:41 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id h37sm1468427lfi.8.2015.12.09.05.42.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:42:41 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org, Johan Hovold , Alexandre Courbot , Michael Welling , Markus Pargmann , Paul Mundt Cc: Linus Walleij , linux-sh@vger.kernel.org Subject: [PATCH 150/182] sh: sdk7786-gpio: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:42:37 +0100 Message-Id: <1449668557-5309-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We're planning to remove the gpiochip_add() function to swith to gpiochip_add_data() with NULL for data argument. Cc: Paul Mundt Cc: linux-sh@vger.kernel.org Signed-off-by: Linus Walleij --- SH people: please ACK this so I can take it through the GPIO tree. --- arch/sh/boards/mach-sdk7786/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/boards/mach-sdk7786/gpio.c b/arch/sh/boards/mach-sdk7786/gpio.c index f71ce09d4e15..47997010b77a 100644 --- a/arch/sh/boards/mach-sdk7786/gpio.c +++ b/arch/sh/boards/mach-sdk7786/gpio.c @@ -9,7 +9,7 @@ */ #include #include -#include +#include #include #include #include @@ -44,6 +44,6 @@ static struct gpio_chip usrgpir_gpio_chip = { static int __init usrgpir_gpio_setup(void) { - return gpiochip_add(&usrgpir_gpio_chip); + return gpiochip_add_data(&usrgpir_gpio_chip, NULL); } device_initcall(usrgpir_gpio_setup);