Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755521Ab1EPUTg (ORCPT ); Mon, 16 May 2011 16:19:36 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:51767 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754610Ab1EPUTf (ORCPT ); Mon, 16 May 2011 16:19:35 -0400 Subject: Re: [PATCH RESEND] regulator: Remove MAX8997_REG_BUCK1DVS/MAX8997_REG_BUCK2DVS/MAX8997_REG_BUCK5DVS macros From: Liam Girdwood To: Axel Lin Cc: linux-kernel@vger.kernel.org, MyungJoo Ham , Kyungmin Park , Mark Brown , Samuel Ortiz In-Reply-To: <1305541234.3006.5.camel@phoenix> References: <1305541234.3006.5.camel@phoenix> Content-Type: text/plain; charset="UTF-8" Date: Mon, 16 May 2011 21:19:31 +0100 Message-ID: <1305577171.3156.15.camel@odin> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 791 Lines: 19 On Mon, 2011-05-16 at 18:20 +0800, Axel Lin wrote: > In current implementation, the original macro implementation assumes the caller > pass the parameter starting from 1 (to match the register names in datasheet). > Thus we have unneeded plus one then minus one operations > when using MAX8997_REG_BUCK1DVS/MAX8997_REG_BUCK2DVS/MAX8997_REG_BUCK5DVS macros. > > This patch removes these macros to avoid unneeded plus one then minus one operations > without reducing readability. > > Signed-off-by: Axel Lin > --- Applied. -- 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/