Return-path: Received: from [217.148.43.144] ([217.148.43.144]:44224 "EHLO mnementh.co.uk" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751742AbdHaPhE (ORCPT ); Thu, 31 Aug 2017 11:37:04 -0400 Subject: Re: [PATCH 18/30] brcmfmac: Cleanup offsetof() To: Arend van Spriel , linux-wireless@vger.kernel.org References: <20170822112550.60311-1-ian@mnementh.co.uk> <20170822112550.60311-19-ian@mnementh.co.uk> From: Ian Molton Message-ID: <2176a8b7-4fca-ffe1-4cf8-e8853c9d1dfc@mnementh.co.uk> (sfid-20170831_173708_053773_E5E6EF54) Date: Thu, 31 Aug 2017 16:37:02 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 30/08/17 20:37, Arend van Spriel wrote: > On 22-08-17 13:25, Ian Molton wrote: >> +#define __sd_reg(field) \ >> + (offsetof(struct sdpcmd_regs, field)) > > I really dislike __foo() stuff. Please just stick with uppercase for > macros, so SD_REG(). I am fine with dropping the base here. I'm fine with that. Will change. -Ian