Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753062AbaDDWOe (ORCPT ); Fri, 4 Apr 2014 18:14:34 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:53839 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752356AbaDDWOL (ORCPT ); Fri, 4 Apr 2014 18:14:11 -0400 Message-ID: <533F2EAC.20501@mm-sol.com> Date: Sat, 05 Apr 2014 01:14:04 +0300 From: Stanimir Vabanov User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Srinivas Kandagatla , Herbert Xu , "David S. Miller" CC: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 2/9] crypto: qce: Add register defines References: <1396541886-10966-1-git-send-email-svarbanov@mm-sol.com> <1396541886-10966-3-git-send-email-svarbanov@mm-sol.com> <533E7A05.9060806@linaro.org> In-Reply-To: <533E7A05.9060806@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Srini, Thanks for the comments. On 04/04/2014 12:23 PM, Srinivas Kandagatla wrote: > > Minor nitpicks. > > On 03/04/14 17:17, Stanimir Varbanov wrote: >> +#define REQ_SIZE 17 /* bit 20-17 */ > > I would have defined macros like this with _SHIFT at the end, something > like this: > > #define REQ_SIZE_SHIFT 17 sure, I will add _SHIFT suffix to all places where it is applicable. > >> +#define REQ_SIZE_MASK (0xf << REQ_SIZE) > You could possibly use GENMASK macro for this, its much readable, in > *some cases* it could reduce few more lines in header too. > > #define REQ_SIZE_MASK GENMASK(20, 17) > > > My comments are equally applicable to most macros in this header file. yes, right will do. Thanks. regards, Stan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/