From patchwork Wed Dec 9 13:43:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58108 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp676847lbb; Wed, 9 Dec 2015 05:43:14 -0800 (PST) X-Received: by 10.98.66.93 with SMTP id p90mr13013340pfa.118.1449668594087; Wed, 09 Dec 2015 05:43:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u63si12822783pfa.181.2015.12.09.05.43.13; Wed, 09 Dec 2015 05:43:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754495AbbLINnN (ORCPT + 4 others); Wed, 9 Dec 2015 08:43:13 -0500 Received: from mail-lf0-f46.google.com ([209.85.215.46]:36386 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754083AbbLINnN (ORCPT ); Wed, 9 Dec 2015 08:43:13 -0500 Received: by lfs39 with SMTP id 39so34659628lfs.3 for ; Wed, 09 Dec 2015 05:43:11 -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=9gJp8BZV8houBOY/zR4QQ2XTIGZi1eMV0HIAJ7ECE+A=; b=ta45GY4pOACE2Bs0jnjYsnYLGMA+TYQTT06n/dG49bpKfWFbkOhJ8+hsjSUOy49oHj a4i3bFYCKWRHg9mDeEiqYUyRKKbFP9I4Mh8K6m96SvsmNTHzyA1HvWfA4JO5KaqlPdQ0 9kn+uDp0MItFRWwDAP2yuRdPAFdZ5tZopTeMs717ao3WwrfhSAu7fQHSs91J1XAcEg3X W8D/pXrsd0Q3e6n87vbbTZfdBXvl4ryJEHs6JYDnS3vNF3D63joHZyVDFfXegLkYKBBR aIhqqSYsursjGAfNoJnI4F5PFuSRdewSBpKHY58v+7kjJfaBq6hSW27fVixQeHCj6khD GqLw== 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=9gJp8BZV8houBOY/zR4QQ2XTIGZi1eMV0HIAJ7ECE+A=; b=gdLfc6j32zLeh8JPsdq3oMwO5DvWCqpQMZ1Pz/0cOF1ehB8EIFZnTILACdKTfibGpY 4Xx6zFODMDFIg2//ZWwIAjIEXT21pot/vm1zNodaAXrT/wwsDjUxyeDL10o9vSwR1kaU z0rsNZ4rvMG5kzHuo5WmasiGCG1cESwmh5Qz1t3S3M2wYwDMha12A1EGxHBJSqrwggUv n5/P0GthAmfgsEzhXyNWGomAXWhqQSkRf9yTaFvTcIEeekMrsXRdH8BDHE/gFsLR5DT6 vQX52HFfwDt3oKC4dzcR1IJAOQ0TWbQsoZoQe3jukvdezFl3JX8AmpDwttFcmYDmyi/G Bfog== X-Gm-Message-State: ALoCoQk35kSIjBdR0MQBHNRiMZoJyRfR1gIar280L+JWeyvGfWkg8awhGzWvVwyhKm4rTXoZnaak9lsmAKEiswEqGuxQh7f2ww== X-Received: by 10.25.155.207 with SMTP id d198mr2410829lfe.93.1449668591675; Wed, 09 Dec 2015 05:43:11 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id k14sm1450149lfb.49.2015.12.09.05.43.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:43:10 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org, Johan Hovold , Alexandre Courbot , Michael Welling , Markus Pargmann , Guan Xuetao Cc: Linus Walleij Subject: [PATCH 152/182] unicore32: gpio: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:43:07 +0100 Message-Id: <1449668587-5452-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org We're planning to remove the gpiochip_add() function to swith to gpiochip_add_data() with NULL for data argument. Cc: Guan Xuetao Signed-off-by: Linus Walleij --- Guan please ACK this so I can take it through the GPIO tree. BTW this could possibly move to drivers/gpio but I don't have the whole picture here. The internal consumers should be converted to the GPIO descriptor API. --- arch/unicore32/kernel/gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/unicore32/kernel/gpio.c b/arch/unicore32/kernel/gpio.c index cb12ec39552c..54a54c335a72 100644 --- a/arch/unicore32/kernel/gpio.c +++ b/arch/unicore32/kernel/gpio.c @@ -14,6 +14,8 @@ #include #include +#include +/* FIXME: needed for gpio_set_value() - convert to use descriptors or hogs */ #include #include @@ -118,5 +120,5 @@ void __init puv3_init_gpio(void) * gpio_set_value(GPO_SET_V2, 1); */ #endif - gpiochip_add(&puv3_gpio_chip); + gpiochip_add_data(&puv3_gpio_chip, NULL); }