From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752048AbbHBRns (ORCPT ); Sun, 2 Aug 2015 13:43:48 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:37445 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbbHBRnr (ORCPT ); Sun, 2 Aug 2015 13:43:47 -0400 Message-ID: <55BE56B5.6040608@ti.com> Date: Sun, 2 Aug 2015 12:43:17 -0500 From: "Andrew F. Davis" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Pavel Machek CC: =?windows-1252?Q?Pali_Roh=E1r?= , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Dan Murphy , , Subject: Re: [PATCH v2 5/6] power: bq27xxx_battery: Add support for additional bq27xxx family devices References: <1438112353-19704-1-git-send-email-afd@ti.com> <1438112353-19704-6-git-send-email-afd@ti.com> <20150802073853.GD3720@amd> In-Reply-To: <20150802073853.GD3720@amd> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/02/2015 02:38 AM, Pavel Machek wrote: > >> +#define INVALID_REG_ADDR 0xff > >> +static u8 bq27000_regs[] = { >> + 0x00, /* CONTROL */ >> + 0x06, /* TEMP */ >> + 0xff, /* INT TEMP - NA*/ > > I'd use the INVALID_REG_ADDR macro here.. Makes it more clear what is > going on (and you may change it to -1 in future, for example). > That works, I'll do that. Thanks, -- Andrew F. Davis