Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1581244pxb; Mon, 8 Mar 2021 00:46:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSxdNa3081y/09Z3irOqEx2jU1bmGMu1JXj6pHBNX1C5j5M7nSaQ6/AVyHgQO9eFu2tV95 X-Received: by 2002:a17:906:38d2:: with SMTP id r18mr13970689ejd.104.1615193161096; Mon, 08 Mar 2021 00:46:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615193161; cv=none; d=google.com; s=arc-20160816; b=vqg2cMvmL3ZL+SGa+dqwbJBnMn2h4o2E4ZFluFmW9Ttv9IsxCy/+MR2QHh60EGieXp BJ3OoGQdrJ8PExYcht7fgmCxHvf5XfOjajshOCtM8oWtNJGOp0GAj8mH5XnK9aB70BDq ux/cdHhcldeWVhwcNyXgZffK/1ZF1FCOFczMpjMJ2bXFyRfN2uNeuxpkiDmkPPPObhle PIvzDTOFllzNzGyh1NJIER41eUhknwjjjcGJt3kIaMxcqDzU70VOeQALoen+Rn26b+nO 3YbD7W2y7mOFfxLvM9h+mTqga/nNadBzdcTM0J6qkyg5kXGts1eXIg1GmMOWKyvaPtjM Qdsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:dkim-signature; bh=qkNAJIzPjC1b41x/zqhY/atvVI6UAsBbmVJumO4zUvY=; b=i7cYMl5OQuemEP5FhCnr6Snrx9hibalxyjH7Xf+pNJmLQLW37XjPb/fnV7CbTNt8vE MF8BKQrVexGUv5vfOeepxHZT3pCORYlW1IQIDZDpt9UnASheIhLkzSx82B3QHqlSXuIr wynN95fe4uRh2efCkLiDhPjFLdjVkTn7KZR6nUw9GlybOXH/Ep8Gr3gQ1XpyG6SfMNXp JCrT8Nf7nWnS/vkEIpvvaGJ7eoHwecU0t/oh2nXDbsVf4tDmaILSmOfgVacdnYYRrgC2 55bBX2n8dCmdG5v6EQzFmpwGxN6+V7PxFXOuuEtL8PG4RPz0zpIALi/JbMSun0amAJBO CE/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=eZrMAk1M; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo3si967734ejb.121.2021.03.08.00.45.38; Mon, 08 Mar 2021 00:46:01 -0800 (PST) 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=fail header.i=@microchip.com header.s=mchp header.b=eZrMAk1M; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234792AbhCHGUf (ORCPT + 99 others); Mon, 8 Mar 2021 01:20:35 -0500 Received: from esa.microchip.iphmx.com ([68.232.154.123]:19309 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234827AbhCHGU3 (ORCPT ); Mon, 8 Mar 2021 01:20:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1615184428; x=1646720428; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cNUFkLLEIoqMFqJYVsIH5x0g/HfTKJzj54C+4PKLThg=; b=eZrMAk1MO8A1crcrcsiT83lyhot9n7/JJfFubARBuvFAe5sta6orDGol GEnObT4j0lt0j5COVLAChL5/Y281BAY3ZZhY4+t++E2jKkXEDuSqsNWfS ELQyeDSW1FdA14jQBfqk9HBblNg1iVxtX7g0868F+3wJSLO4vgrNzHqIj 2TCVF1qZwY7teIaT/K3nM+0+wwO+Hfef2oJSCatdlX4exj9pnBIMFIQ5p PTXM9ZXeh9Jls2b8IwNrRlDXVWJTLAleMdmtoZCHMHKIn92pQLaWKY0as V7kCIbFERTANhQzlgs+QEdBhnXhEQiuapMYgalYU6RW4vAgcm/zhser3T g==; IronPort-SDR: aX6ADHPrVJgGoouxDLpihNnVrEy9CnJZ98dVe27lxuws4xFq/CU+TasJHDh3PcmY8F0e5g+Rei Zj6W8u5y70V26DGMrcM3mxNajvNOIrW2zgCbnoY/yDRnqT1RveoUuACy1wftxSWBGULJDRyx7w 6Q1MabkGlTERjouHkBO2+6Y4ZjsykEm3HqJ8zIMwmt+jBZ9EtIK+KKbo84qaTUhHWYK/ekhAlC N9tErH0dHFo0rlmFJfLgS9GCPJopC702GouQoV40tHAQN1QTBdijGZHPJI1yE1nut6VT6t5BvS aq0= X-IronPort-AV: E=Sophos;i="5.81,231,1610434800"; d="scan'208";a="46622120" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Mar 2021 23:20:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sun, 7 Mar 2021 23:20:28 -0700 Received: from atudor-ThinkPad-T470p.amer.actel.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sun, 7 Mar 2021 23:20:26 -0700 From: Tudor Ambarus To: , , "Michael Walle" CC: Tudor Ambarus , Richard Weinberger , Miquel Raynal , "Vignesh Raghavendra" Subject: Re: [PATCH] mtd: spi-nor: use is_power_of_2() Date: Mon, 8 Mar 2021 08:20:24 +0200 Message-ID: <161518441282.69910.7961092195039294624.b4-ty@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210305234552.19204-1-michael@walle.cc> References: <20210305234552.19204-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 6 Mar 2021 00:45:52 +0100, Michael Walle wrote: > There is already a function to check if an integer is a power of 2. Use > it. Applied to spi-nor/next, thanks! [1/1] mtd: spi-nor: use is_power_of_2() https://git.kernel.org/mtd/c/04fc298c7d08 Best regards, -- Tudor Ambarus