From patchwork Fri May 10 14:48:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2551211 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 8389BDFE75 for ; Fri, 10 May 2013 14:48:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754714Ab3EJOsb (ORCPT ); Fri, 10 May 2013 10:48:31 -0400 Received: from perceval.ideasonboard.com ([95.142.166.194]:44870 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754298Ab3EJOsa (ORCPT ); Fri, 10 May 2013 10:48:30 -0400 Received: from avalon.ideasonboard.com (ptra-178-50-80-25.mobistar.be [178.50.80.25]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0C03835A4D; Fri, 10 May 2013 16:48:03 +0200 (CEST) From: Laurent Pinchart To: linux-sh@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org, Linus Walleij , Magnus Damm Subject: [RFC/PATCH 1/2] gpio-rcar: Make the platform data gpio_base field signed Date: Fri, 10 May 2013 16:48:36 +0200 Message-Id: <1368197317-13169-2-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1368197317-13169-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1368197317-13169-1-git-send-email-laurent.pinchart@ideasonboard.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org The gpio_base field is used to specify the desired GPIO base for the GPIO controller. The GPIO core can automatically allocate a GPIO number range when the base is set to -1. To make this possible, make the field signed. Signed-off-by: Laurent Pinchart Acked-by: Linus Walleij --- include/linux/platform_data/gpio-rcar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/platform_data/gpio-rcar.h b/include/linux/platform_data/gpio-rcar.h index cc472f6..fb2c718 100644 --- a/include/linux/platform_data/gpio-rcar.h +++ b/include/linux/platform_data/gpio-rcar.h @@ -17,7 +17,7 @@ #define __GPIO_RCAR_H__ struct gpio_rcar_config { - unsigned int gpio_base; + int gpio_base; unsigned int irq_base; unsigned int number_of_pins; const char *pctl_name;