Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5271213img; Wed, 27 Mar 2019 05:34:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+jDscIX/ZPSFKhC2VtoAz6qMi+ZBQMit7ciOJRfKyzPFSA9V+yYsRqniF7KxBgmAjz4OD X-Received: by 2002:a17:902:1122:: with SMTP id d31mr3554039pla.29.1553690051786; Wed, 27 Mar 2019 05:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553690051; cv=none; d=google.com; s=arc-20160816; b=zJzbzrwvzfu6a6UezJn7qxOD4IlRHD3YfAcBtnBTDlfw0jm5ZrwgURYw0An+YI+xTK xDu+PQWFc+viFmxfpWJce+mR/8pZZlkPB3813OOf+Cu7ulaNFGqhWQrNSb3eHOSNbyji xe2VHza0yO/N2p51taMXVioKNjFFQPoVAFHDV/Ej7GrP6h5a6HvhFxaHjiTkNU54O05E cYAVTxlHZYvGxj+kxLgKcDRAe23s4la6t/7C3908tvmMiXgEt7lzBOnUNunkaJbGF5Xd MEQ7f0pPpV8xwkQIM/lLYPdh9U/RbdVz5PayigOZAfPPZ0NWdyYh4pDxn5NiU/tpcoDd geNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=flX5HcVmyDk8SLsA7gUa88PggrcTlmgMfAKXujAkfNo=; b=YzwN+ksVD+IF5kTzc2ORVRJux+VuGkUAp6D5okKGQX9B8j1CKmUav2xuloTcBy0uPP L942UMq91hsaFzArca4zAnu5SPmFoH0KlkvFhSiMrIQzqqmM7OhqcZ40XBUKSGMfLZYK fNjr89YeJVoqVQ0sSEkS9jRvkWXzbwym4lJrnnrTxbp2lUG1KGngvb/DmPNmFN02VSdJ zcOnxeTBFF2/Bzs32H8KCbZelagXgnlW+5XkJpqWqdet/V6bifDuSNsWf2aDnHDExbi2 N43/pFqMSJWrNfft+9hV5LPO5LZSZSo3eWdSn4GCfEaEBy74AO4XwSGxguSYYImqJZ3r j9PQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6si18283753pfd.115.2019.03.27.05.33.56; Wed, 27 Mar 2019 05:34:11 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729047AbfC0MdW (ORCPT + 99 others); Wed, 27 Mar 2019 08:33:22 -0400 Received: from mga01.intel.com ([192.55.52.88]:47711 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbfC0MdW (ORCPT ); Wed, 27 Mar 2019 08:33:22 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2019 05:33:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,276,1549958400"; d="scan'208";a="130598504" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by orsmga006.jf.intel.com with ESMTP; 27 Mar 2019 05:33:16 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1h97k2-0007Gv-Ux; Wed, 27 Mar 2019 14:33:14 +0200 Date: Wed, 27 Mar 2019 14:33:14 +0200 From: Andy Shevchenko To: William Breathitt Gray Cc: linus.walleij@linaro.org, bgolaszewski@baylibre.com, akpm@linux-foundation.org, linux-gpio@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux@rasmusvillemoes.dk, yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, geert@linux-m68k.org, preid@electromag.com.au, Geert Uytterhoeven Subject: Re: [PATCH v13 10/11] gpio: 74x164: Utilize the for_each_set_clump8 macro Message-ID: <20190327123314.GJ9224@smile.fi.intel.com> References: <645f16f1d1ad3f215e34a82f457e06725fcf8f56.1553661964.git.vilhelm.gray@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <645f16f1d1ad3f215e34a82f457e06725fcf8f56.1553661964.git.vilhelm.gray@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 02:02:39PM +0900, William Breathitt Gray wrote: > Replace verbose implementation in set_multiple callback with > for_each_set_clump8 macro to simplify code and improve clarity. > + for_each_set_clump8(offset, bankmask, mask, chip->registers * 8) { > + bank = (chip->registers - 1) - (offset / 8); Excessive parens, but it's minor. > + bitmask = bitmap_get_value8(bits, offset) & bankmask; > > chip->buffer[bank] &= ~bankmask; > + chip->buffer[bank] |= bitmask; > } -- With Best Regards, Andy Shevchenko