From patchwork Wed Jan 23 14:15:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1029965 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; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="oCKWYjVV"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43l6lM6Zypz9s9G for ; Thu, 24 Jan 2019 01:15:58 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727171AbfAWOP4 (ORCPT ); Wed, 23 Jan 2019 09:15:56 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:56204 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbfAWOPz (ORCPT ); Wed, 23 Jan 2019 09:15:55 -0500 Received: by mail-wm1-f66.google.com with SMTP id y139so2110865wmc.5 for ; Wed, 23 Jan 2019 06:15:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z770VfwimnPEUjTF5L5saIw2a2GAQPLZtqYgE1wTw+k=; b=oCKWYjVVwVFKVwJgc+LY6lR9zTKix2d5fs4v7joJxm0kxkWNdZNnG15w0kbLjXUNZy ArSH6985R1J604kDYcghQiRrwz1Prp8OpcdwTFj76+kWeA1+rr7c2TxE7FWPL4XZ1MIC BzfoQHBiM/TyB0a8XHZjJdgt0k94sg+1P7G5y0KQZC3+j9SvpywA2OqynNOMxoUR9Ui7 rCjhny93Hskzf+HYRgsL8Xus3nHizplpEHYJeWdHTRGiDf2TlorOrrF5L3Q+uQPTYyIB TuPoXjRRjt/BT73lEeLtXbxjiFADR8WQ5TMD3+w8LEUffSASLCOSUCyYBoYSKFQv6Vi8 OAkQ== 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:mime-version:content-transfer-encoding; bh=Z770VfwimnPEUjTF5L5saIw2a2GAQPLZtqYgE1wTw+k=; b=Jeq14XBda9H6y6GCRUUByjfIX57HPI1LD3Ms9Lm0D+HDuYbDzsgAHdUS7ozrBsGanW /9oFtehyH831mmSNynw8HWmApUwlSvPYuLNwkSKjbaszu1VZKnD0Rr1nIWH2xNer/8oD tH3hDA8CD/dVA9lc2SGSmXZ3GAde19aVofaBHwOi1WTU4Mm9Ga9SesrbFG+MkrgmEt6X vNdb9uVYR3L7Ev8IRTJkHTfAIQPveyouqx1Pl1Yj9mrWK7Z3L3EQJ0aPBcgvRoKoF15o iGWzQyNB63Uqz/uWCFGja9yKWdhtKpga2/Jqieaxoh5j5Aqm11apnprU88hftnaP17N1 Zq8g== X-Gm-Message-State: AJcUukcx9XcX0MrGe2tT9Nxtf+VTjNbBJpOgDi/UrxUIw4wKjDwRcjxy dzZVzebxuSz2i/svTTRyQUzSvQ== X-Google-Smtp-Source: ALg8bN6ZiIfPXtdkG7rpCXLW/usPBmqSFbV0Sh0oYZeS++iEImwmFIASPZk8ESEDZiJUEnbcYz4qPg== X-Received: by 2002:a7b:c44d:: with SMTP id l13mr2979096wmi.144.1548252954021; Wed, 23 Jan 2019 06:15:54 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id a8sm29072997wme.23.2019.01.23.06.15.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 06:15:53 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Thomas Gleixner , Marc Zyngier , =?utf-8?q?Uwe_Kleine-K?= =?utf-8?b?w7ZuaWc=?= Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 7/9] gpio: mockup: change the type of 'offset' to unsigned int Date: Wed, 23 Jan 2019 15:15:36 +0100 Message-Id: <20190123141538.29408-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190123141538.29408-1-brgl@bgdev.pl> References: <20190123141538.29408-1-brgl@bgdev.pl> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Bartosz Golaszewski This field can never be negative. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 0317917a3678..433adb3b4617 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -60,7 +60,7 @@ struct gpio_mockup_chip { struct gpio_mockup_dbgfs_private { struct gpio_mockup_chip *chip; struct gpio_desc *desc; - int offset; + unsigned int offset; }; static int gpio_mockup_ranges[GPIO_MOCKUP_MAX_RANGES];