Received: from eggs.gnu.org ([2001:4830:134:3::10]:56725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3t1B-0004Do-4m for qemu-devel@nongnu.org; Mon, 29 Jul 2013 15:22:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3t12-0002bO-0r for qemu-devel@nongnu.org; Mon, 29 Jul 2013 15:22:05 -0400 Received: from cantor2.suse.de ([195.135.220.15]:53418 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3t11-0002bC-Mw for qemu-devel@nongnu.org; Mon, 29 Jul 2013 15:21:55 -0400 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3D1E4A52BF for ; Mon, 29 Jul 2013 21:21:55 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 29 Jul 2013 21:19:06 +0200 Message-Id: <1375125630-24869-90-git-send-email-afaerber@suse.de> In-Reply-To: <1375125630-24869-1-git-send-email-afaerber@suse.de> References: <1375125630-24869-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 089/173] pl050: Rename pl050_state to PL050State List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= Signed-off-by: Andreas F=C3=A4rber --- hw/input/pl050.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/input/pl050.c b/hw/input/pl050.c index 2312ffc..8493abd 100644 --- a/hw/input/pl050.c +++ b/hw/input/pl050.c @@ -10,7 +10,7 @@ #include "hw/sysbus.h" #include "hw/input/ps2.h" =20 -typedef struct { +typedef struct PL050State { SysBusDevice busdev; MemoryRegion iomem; void *dev; @@ -20,17 +20,17 @@ typedef struct { int pending; qemu_irq irq; int is_mouse; -} pl050_state; +} PL050State; =20 static const VMStateDescription vmstate_pl050 =3D { .name =3D "pl050", .version_id =3D 2, .minimum_version_id =3D 2, .fields =3D (VMStateField[]) { - VMSTATE_UINT32(cr, pl050_state), - VMSTATE_UINT32(clk, pl050_state), - VMSTATE_UINT32(last, pl050_state), - VMSTATE_INT32(pending, pl050_state), + VMSTATE_UINT32(cr, PL050State), + VMSTATE_UINT32(clk, PL050State), + VMSTATE_UINT32(last, PL050State), + VMSTATE_INT32(pending, PL050State), VMSTATE_END_OF_LIST() } }; @@ -48,7 +48,7 @@ static const unsigned char pl050_id[] =3D =20 static void pl050_update(void *opaque, int level) { - pl050_state *s =3D (pl050_state *)opaque; + PL050State *s =3D (PL050State *)opaque; int raise; =20 s->pending =3D level; @@ -60,7 +60,7 @@ static void pl050_update(void *opaque, int level) static uint64_t pl050_read(void *opaque, hwaddr offset, unsigned size) { - pl050_state *s =3D (pl050_state *)opaque; + PL050State *s =3D (PL050State *)opaque; if (offset >=3D 0xfe0 && offset < 0x1000) return pl050_id[(offset - 0xfe0) >> 2]; =20 @@ -103,7 +103,7 @@ static uint64_t pl050_read(void *opaque, hwaddr offse= t, static void pl050_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - pl050_state *s =3D (pl050_state *)opaque; + PL050State *s =3D (PL050State *)opaque; switch (offset >> 2) { case 0: /* KMICR */ s->cr =3D value; @@ -135,7 +135,7 @@ static const MemoryRegionOps pl050_ops =3D { =20 static int pl050_init(SysBusDevice *dev, int is_mouse) { - pl050_state *s =3D FROM_SYSBUS(pl050_state, dev); + PL050State *s =3D FROM_SYSBUS(PL050State, dev); =20 memory_region_init_io(&s->iomem, OBJECT(s), &pl050_ops, s, "pl050", = 0x1000); sysbus_init_mmio(dev, &s->iomem); @@ -170,7 +170,7 @@ static void pl050_kbd_class_init(ObjectClass *klass, = void *data) static const TypeInfo pl050_kbd_info =3D { .name =3D "pl050_keyboard", .parent =3D TYPE_SYS_BUS_DEVICE, - .instance_size =3D sizeof(pl050_state), + .instance_size =3D sizeof(PL050State), .class_init =3D pl050_kbd_class_init, }; =20 @@ -186,7 +186,7 @@ static void pl050_mouse_class_init(ObjectClass *klass= , void *data) static const TypeInfo pl050_mouse_info =3D { .name =3D "pl050_mouse", .parent =3D TYPE_SYS_BUS_DEVICE, - .instance_size =3D sizeof(pl050_state), + .instance_size =3D sizeof(PL050State), .class_init =3D pl050_mouse_class_init, }; =20 --=20 1.8.1.4