From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 3/3] xen/arm: io: Shorten the name of the fields and clean up Date: Tue, 29 Sep 2015 14:58:46 +0100 Message-ID: <1443535126.16718.86.camel@citrix.com> References: <1443472296-6671-1-git-send-email-julien.grall@citrix.com> <1443472296-6671-4-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZgvQh-0006Dt-56 for xen-devel@lists.xenproject.org; Tue, 29 Sep 2015 13:58:51 +0000 In-Reply-To: <1443472296-6671-4-git-send-email-julien.grall@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall , xen-devel@lists.xenproject.org Cc: stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, 2015-09-28 at 21:31 +0100, Julien Grall wrote: > The field names in the IO emulation are really long and use repeatedly > the term handler which make some line cumbersome to read: > > mmio_handler->mmio_handler_ops->write_handler > > Also take the opportunity to do some clean up: > - Avoid "handler" vs "handle" in register_mmio_handler > - Use a local variable to initialize handler in > register_mmio_handler > - Add a comment explaining the dsb(ish) in register_mmio_handler > - Rename the structure io_handler into vmmio because the io_handler > is in fine handling multiple handlers and the name a the fields was > io_handlers. Also rename the field io_handlers to vmmmio Stray extra "m" in vmmmio. > - Rename the field mmio_handler_ops to ops because we are in the > structure mmio_handler to not need to repeat it > - Rename the field mmio_handlers to handlers because we are in the > vmmio structure > - Make it clear that register_mmio_ops is taking an ops and not an > handle > - Clean up local variable to helpe to understand the code Stray "e" in the last line. > > Signed-off-by: Julien Grall Acked-by: Ian Campbell