From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45879 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNmYh-0006Vr-G3 for qemu-devel@nongnu.org; Wed, 01 Dec 2010 08:17:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNmYg-0004XB-F5 for qemu-devel@nongnu.org; Wed, 01 Dec 2010 08:17:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNmYg-0004Wl-7Y for qemu-devel@nongnu.org; Wed, 01 Dec 2010 08:17:18 -0500 Message-ID: <4CF64AEC.1030602@redhat.com> Date: Wed, 01 Dec 2010 14:17:32 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <1290799053-27282-1-git-send-email-agraf@suse.de> <1290799053-27282-4-git-send-email-agraf@suse.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 03/13] ide: add support for ide bus ops List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Joerg Roedel , Paul Brook , Alexander Graf , QEMU-devel Developers , Blue Swirl , Gerd Hoffmann , tj@kernel.org, Sebastian Herbszt , Roland Elek Am 01.12.2010 14:09, schrieb Stefan Hajnoczi: > On Fri, Nov 26, 2010 at 7:17 PM, Alexander Graf wrote: > Just some cosmetic suggestions. > >> @@ -2716,6 +2736,12 @@ static void ide_init1(IDEBus *bus, int unit) >> ide_sector_write_timer_cb, s); >> } >> >> +static IDEBusOps ide_bus_ops = { > > Since the functions are all pata_* I think it makes sense for this to > be called pata_bus_ops, not ide_bus_ops. > >> + .transfer_start_fn = pata_transfer_start, >> + .irq_set_fn = pata_set_irq, > > irq_set or set_irq? :) Let's consistently go with set_irq. And drop the _fn suffix? It's really obvious that these are functions (if this is what it's meant to say). Kevin