Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4411488imu; Tue, 29 Jan 2019 00:46:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN7HgSPrXr2ESlKi1AKd0DxPbcFiwQN9sTNwoO3T9xRKIZyong4icK49ZAVK3EVhi7+BTYbH X-Received: by 2002:a62:5658:: with SMTP id k85mr25020583pfb.231.1548751610803; Tue, 29 Jan 2019 00:46:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548751610; cv=none; d=google.com; s=arc-20160816; b=T57ZREjCwdvIpjswRkU/eJNGJg2Fg2fbXPvQtHEavXeKnCTwM8lZXW4xNxDltvQI6g xhgMDlivc2muLq4LpxI/pG1b2wkvpjYY6evCOjDr0hs+RSepyYgPT6VVmx2iS8MddP6J taEloQy/+XSyOn2mAWSOPBrNFHUokixwsTgMQtZlKAYSBY7mCHEneMTlg1CdoA3RdUZB h9qMyAZel70gg+wyk+edWsplRYz4BEd4svP1kMhXHrG4MFRXjbpvpUH5wxhCXI2KRp4D VarreHWgMTGB+l/kmmrZi3Ih4RtmVJHHLDLbwX+e8gLsmrUMgdeqHaYDThtNkbBcZ1ZF lNmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z770VfwimnPEUjTF5L5saIw2a2GAQPLZtqYgE1wTw+k=; b=xkKeCwjt5xgrJ6stCV03j5A0eOi0k7UVogiTZPn4POm1byWd4LguJfw+EP1wm8+LL2 9Y61hH8pGGnWfOSq3H7lbezLolThi6C09rjJ7QwhS1XIm2Ni4abixGLac6l1mr6M093V 83FULMMHW6ddqVzgpCtMgifi2URHREf83CNLW6I0klRPiBZCeALMFQAW+luQvB9A3ZMP O6Uepd25GJYluh8XJdznP4sSXsG1f3Aoy/dboZnoT4sWzlA1r6uR/arH9kJkNgglyp9e mK10NWLs0ShNWJ6TptDtUk8+oP5Z1GjJ0d+oTA9xWWLCBnWyIIM1dV3y56mfFa61MzXT ix+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=bzvT4yHr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si34746272plr.211.2019.01.29.00.46.34; Tue, 29 Jan 2019 00:46:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=bzvT4yHr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727590AbfA2Iot (ORCPT + 99 others); Tue, 29 Jan 2019 03:44:49 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55710 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727981AbfA2Io2 (ORCPT ); Tue, 29 Jan 2019 03:44:28 -0500 Received: by mail-wm1-f67.google.com with SMTP id y139so16681359wmc.5 for ; Tue, 29 Jan 2019 00:44:27 -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=bzvT4yHrth8hQqClKtQsifaxCoVXHOrRa/tm/EttPukcflaK6v6VJbAsiSewuJZRnE OjO4nJoSvgq8ARcsL6jICcHK2HOulaVYYHi4dasWveANeahgb5v/pw2+xKXUCDsjt2yc ZSQlgE72CSf0HvbtglIrNM+DsthNsg2hDFUFRf0wprj780mpvHeEdtJZNmQq0y9rI/uC EfAJfcXiFRzTh+LNEDxewsAi3CenCQgAigzGHcDdhLGqQo8vROCmmRj1V+hGXrUhGwwt 1zPC88HLpmBxVEOQmElvSf5psKrQz0y6iElTJdofVgXvbC5FIlx/oFTB3cYo1iBbc2w1 GIbw== 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=ZG1bHPcEabGj3MAhq7QN2F9z91U5agP26eHBIKpiY07/BKS9z+V6F7L+kmlqx0r52g hWTHA5vw9+0aPKcxgQuW/h08DqrdOYcYE/FrntuWlD3w33WA6f/epo0RvrJOIo/E6H6D zMMYzjp4fVUu58ztvMYdVkbTs51tOmB58JVXv+eqmQyEwEuUBvhP270xTsBkRLZJpqA0 6yhi3YNkCxG81J8fMne0/L+qm40tCsy8tqQtf3X9u91dBhXTdIu6fWPX26Mne+jQsI1I MbsVhs+TMn96z5fiGAuyEn3nXXNUMQE117FxjG6gbWpV/RjQ2gLcTjwhuEfKd3lpR9/8 GhpA== X-Gm-Message-State: AJcUukc/Bs6QRlIMky4m79mPdtQzv3ki7phgYBYgrfLSRGBvyaWdUNkM fWi4N67nfDEQhg7RRY4tmZ6wEg== X-Received: by 2002:a1c:dd04:: with SMTP id u4mr20207089wmg.84.1548751466628; Tue, 29 Jan 2019 00:44:26 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id c1sm3979319wmb.14.2019.01.29.00.44.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 00:44:26 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Thomas Gleixner , Marc Zyngier , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 7/9] gpio: mockup: change the type of 'offset' to unsigned int Date: Tue, 29 Jan 2019 09:44:09 +0100 Message-Id: <20190129084411.30495-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190129084411.30495-1-brgl@bgdev.pl> References: <20190129084411.30495-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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]; -- 2.19.1