Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp47686ybz; Tue, 28 Apr 2020 17:54:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKFhumeTqVCJ8OPxB46M9IoN7aFoTC18Ao9n8Wpbz+Vv3gLOU3F0iwbMiKsdB/RVQwdnKnS X-Received: by 2002:aa7:dc4b:: with SMTP id g11mr311400edu.223.1588121689395; Tue, 28 Apr 2020 17:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588121689; cv=none; d=google.com; s=arc-20160816; b=AKAIo7xGr5Y8KRD4yutda/PNynlUmoK5pvHttxz46Bk4Wb0cU2TQO6SixN4o7A5T8z N880b+viHe7dzVWZ1T5NvslJQMOStDcKbe6s60rBjpD6e+Pu7uO/xMFVb9LGBRsdGwsb tYczpoWZCHgDWyISoHx49x9AMIpJfubhBcD/jgxkDXrm3lGAAp3DrIJh5zc3k+QZT7TX uAlEa3g2yZKtfeXiy4thWZ4c662NwN3gtKnN1r6I6SA9hqq0aI7DTeIlBWHGf7YQh9LD PFYKmxR8pmXZXQfDKMPBUGp38A7Rx6G6pTCU0w90leaSM8xUvioaQMOMM+OYQH6dg/lL NmKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6u3sVYzO/Ci5rYvWAGcPeyuh2kJ6IDPGvpL5WgquApI=; b=h+407xZOkMiKjpRgtBzskGaiZYLS7Kh3lxJIuSgFywCsMK9aXi2cms8sXe147LOeYi CzvEscBLIdDWldvP+JpahK+R9vn9PtyKmRh0mFn8cLjfLeXh4Daf7TM4S6l/yBRf5sd3 28pMd49IritduZVOQsDI2TCq5DbNPK1Pu3MFgww3oBuYPNHGssFVeRVt4K7bT3HTILzU dAT572xTnM9j0/fjNJ8E41d55crYtOS94Lrnem1F1BCDPJTy4M5SguhaIZm0heZN9yLW oRdXAMSxkxSsZT/ugMvZ2RkNMgUZ41jc4zptXQ8impYV2fomhc8EEy7Tdk5/6kEqUd1q +mCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cK2TC6oq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si2493865eds.551.2020.04.28.17.54.26; Tue, 28 Apr 2020 17:54:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cK2TC6oq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726495AbgD2Aul (ORCPT + 99 others); Tue, 28 Apr 2020 20:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726353AbgD2Aul (ORCPT ); Tue, 28 Apr 2020 20:50:41 -0400 Received: from mail-ua1-x941.google.com (mail-ua1-x941.google.com [IPv6:2607:f8b0:4864:20::941]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE1EAC03C1AC for ; Tue, 28 Apr 2020 17:50:39 -0700 (PDT) Received: by mail-ua1-x941.google.com with SMTP id c24so254075uap.13 for ; Tue, 28 Apr 2020 17:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6u3sVYzO/Ci5rYvWAGcPeyuh2kJ6IDPGvpL5WgquApI=; b=cK2TC6oquRyuDEIZ1S6rIu8b3VOBFMwrJQubosXZZog80NmR+y/OlKbMCRaYQhZhpm sWdEbha+b9pOy8AmCfTklC2xUV8b1e0VwH2uu5DoFuI05bntFwhljyerZYyRnK32Ze1Z pmka47TcDe2giuk2cFnHmM+QKkaEQD1W78IU4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6u3sVYzO/Ci5rYvWAGcPeyuh2kJ6IDPGvpL5WgquApI=; b=RfE78tai5G+7VU+J6VmEsMGhBlf50ABQRZRNA2Cck4jw89TU9zZo95GPev79/CB9/U fNWs6YaRsqXEGWyPXsKmW7Wha8LP5d9hvTvHhqVp+ng+7YlW1+n3rJ8Kq3yo6GDF13tk c8H0/o8qyMqV+J6ES9qBLsI9LMFBv0QrTUaYwdjEDu3aUDYrmkUSO6SNghg0W4rpoNci lMeaTx2rTI0iWvprTBAsq7USzkVf2mogSA63gltv4/duwDT0UKJ+zwvU/yorN1PvwVm2 KRa5yhr0f3EmsYzgNf6BNucDCeieMYmjbtSiz4T3dj/cr8I21L4kxfs2Y/iLBCrIJxt0 u/fA== X-Gm-Message-State: AGi0Pua+xBhMlAZ2oVcBLd6oGzTI8M1kIY61+sxtzla0pRk3SbHU9sw+ VM70Fct/ZGqSD8p/bsW/Q+4ys6TYqPs= X-Received: by 2002:a9f:2907:: with SMTP id t7mr22066689uat.4.1588121438924; Tue, 28 Apr 2020 17:50:38 -0700 (PDT) Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com. [209.85.222.46]) by smtp.gmail.com with ESMTPSA id r188sm4631180vsb.20.2020.04.28.17.50.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Apr 2020 17:50:38 -0700 (PDT) Received: by mail-ua1-f46.google.com with SMTP id y10so285758uao.8 for ; Tue, 28 Apr 2020 17:50:38 -0700 (PDT) X-Received: by 2002:ab0:375a:: with SMTP id i26mr1184039uat.120.1588121438064; Tue, 28 Apr 2020 17:50:38 -0700 (PDT) MIME-Version: 1.0 References: <20200428172322.1.I396f351e364f3c09df7c7606e79abefb8682c092@changeid> <20200428172322.2.Iacb3c8152c3cf9015a91308678155a578b0cc050@changeid> In-Reply-To: From: Doug Anderson Date: Tue, 28 Apr 2020 17:50:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] gpio: Make "offset" and "unsigned int", not just "unsigned" To: Joe Perches Cc: LinusW , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Apr 28, 2020 at 5:38 PM Joe Perches wrote: > > On Tue, 2020-04-28 at 17:23 -0700, Douglas Anderson wrote: > > When I copied the function prototypes from the GPIO header file into > > my own driver, checkpatch yelled at me saying that I shouldn't use use > > "unsigned" but instead should say "unsigned int". Let's make the > > header file use "unsigned int" so others who copy like I did won't get > > yelled at. > > There are a few other unsigned declarations in the file. There are? I swear I looked for them before I sent my patch and I couldn't find them. Then I looked again upon seeing your reply and I still can't find them. My eyes are bad, though. Maybe you can give me specifics? > Maybe do all of them (and remove the unnecessary externs)? You mean just remove the word "extern" everywhere in this file? Sure, I can if you want. > trivial reformatting of the function pointer block too Wow, I must be totally out of it. Maybe it's the gin and tonic I just had. I don't understand this comment either. Can you clarify? -Doug