From patchwork Mon Jul 24 14:57:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 792844 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="V7rgHBxd"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xGPf14ykZz9s2G for ; Tue, 25 Jul 2017 00:59:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756370AbdGXO7C (ORCPT ); Mon, 24 Jul 2017 10:59:02 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33618 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932380AbdGXO5l (ORCPT ); Mon, 24 Jul 2017 10:57:41 -0400 Received: by mail-wr0-f196.google.com with SMTP id y43so17648213wrd.0; Mon, 24 Jul 2017 07:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q4pAFOUYlFErmEfVGkK3a5gEPlomU4oLdJIxS0jkjrs=; b=V7rgHBxd84fPcGh6ccOefbrETjEzK0vXv0Tbl8XTGxusFzV1mD7ELZMyIi1V1euQhL 6eCdHAiWbYcogynoUn1RajFNPLcg3QG8SS0MeTqC4URtR7uIdr5a1DRhD0zdO3a4oPNh +Bihzznrw2Qep4jlgCN4JxxsdlQC0wI3bRtD+qEvG7VAPkzQD/KZdxx5d5n0OxJsGoiK Z4QkZoL97yWaLdmL3Z6YuwlsvxOus6/Kg9BQY2DynClkUK3YIeTYZynR+yCDq+9BZ7xA 0ujNRB3xrkVi1LLCByLc7BJL4JAsJpsdCqMAo+VK+kxFfVwIg//QEVmiJQghcMkMaIGO /YnQ== 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:in-reply-to :references; bh=Q4pAFOUYlFErmEfVGkK3a5gEPlomU4oLdJIxS0jkjrs=; b=uZvEDQkjFcmJAYelhnXjMl5uizHuV9WKN5JwHVanA6WoV7Ud1iyZRoGLCSIG1DMOaL 3xe3jjbB79udp/IySY0ucKiy5cp9MJi+Ulrl0KtjO3WEsCVtpxKk43cobZxeC64vmqFP Xh/OiRNHLikeyrqIIK/Un38HNeQdZ/zAOh6ljobKCvp9/n6okLPDoT0M9FxjwqCfXnmQ WD+/U1Nw5fIsrs157TrVhrqcJSZBzbvCpWYyPAx/ROrixcSF07bkyuioNFzrt+vUfBsO NgLKw1CaPiqUb8u28QYt9OkL0ATanqWsqaIKYcZMkcLMn3s1J7gTruad1zWagLGqawjM TOlQ== X-Gm-Message-State: AIVw111illiJtj7d4bQEADbPeI/ZMLAGRug8ZusI5PETRYvIOQCnpSOI FWpZ+xNj+heyIaDv X-Received: by 10.223.135.181 with SMTP id b50mr14744815wrb.261.1500908259595; Mon, 24 Jul 2017 07:57:39 -0700 (PDT) Received: from localhost (p200300E41BDFF20076D02BFFFE273F51.dip0.t-ipconnect.de. [2003:e4:1bdf:f200:76d0:2bff:fe27:3f51]) by smtp.gmail.com with ESMTPSA id 35sm9871265wrf.72.2017.07.24.07.57.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jul 2017 07:57:38 -0700 (PDT) From: Thierry Reding To: Linus Walleij Cc: Mika Westerberg , Andy Shevchenko , Jonathan Corbet , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] gpio: Use unsigned int for of_gpio_n_cells Date: Mon, 24 Jul 2017 16:57:28 +0200 Message-Id: <20170724145728.7662-7-thierry.reding@gmail.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170724145728.7662-1-thierry.reding@gmail.com> References: <20170724145728.7662-1-thierry.reding@gmail.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Thierry Reding The cell count for GPIO specifiers can never be negative, so make the field unsigned. Signed-off-by: Thierry Reding --- include/linux/gpio/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index fe66c9306caf..c97f8325e8bf 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -193,7 +193,7 @@ struct gpio_chip { * * Number of cells used to form the GPIO specifier. */ - int of_gpio_n_cells; + unsigned int of_gpio_n_cells; /** * @of_xlate: