From patchwork Tue Sep 29 20:48:44 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 34476 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D2432B7C02 for ; Wed, 30 Sep 2009 07:39:59 +1000 (EST) Received: from localhost ([127.0.0.1]:44759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MskQO-0001yx-4n for incoming@patchwork.ozlabs.org; Tue, 29 Sep 2009 17:39:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Msje0-0005JB-Tl for qemu-devel@nongnu.org; Tue, 29 Sep 2009 16:49:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Msjdw-0005E3-Jq for qemu-devel@nongnu.org; Tue, 29 Sep 2009 16:49:56 -0400 Received: from [199.232.76.173] (port=55231 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msjdw-0005Db-B6 for qemu-devel@nongnu.org; Tue, 29 Sep 2009 16:49:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31675) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Msjdv-0002X1-MK for qemu-devel@nongnu.org; Tue, 29 Sep 2009 16:49:52 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8TKnogc002558 for ; Tue, 29 Sep 2009 16:49:50 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8TKnHY0006885; Tue, 29 Sep 2009 16:49:49 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Tue, 29 Sep 2009 22:48:44 +0200 Message-Id: <50f12ec333978f3375006862691cf44d788fafdd.1254255997.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 25/49] vmstate: remove i2c_slave_load/save X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org All its users moved to vmstate Signed-off-by: Juan Quintela --- hw/i2c.c | 11 ----------- hw/i2c.h | 2 -- 2 files changed, 0 insertions(+), 13 deletions(-) diff --git a/hw/i2c.c b/hw/i2c.c index e561e7f..6cd4701 100644 --- a/hw/i2c.c +++ b/hw/i2c.c @@ -165,17 +165,6 @@ const VMStateDescription vmstate_i2c_slave = { } }; -void i2c_slave_save(QEMUFile *f, i2c_slave *dev) -{ - vmstate_save_state(f, &vmstate_i2c_slave, dev); -} - -void i2c_slave_load(QEMUFile *f, i2c_slave *dev) -{ - vmstate_load_state(f, &vmstate_i2c_slave, dev, - vmstate_i2c_slave.version_id); -} - static int i2c_slave_qdev_init(DeviceState *dev, DeviceInfo *base) { I2CSlaveInfo *info = container_of(base, I2CSlaveInfo, qdev); diff --git a/hw/i2c.h b/hw/i2c.h index 65887a2..83fd917 100644 --- a/hw/i2c.h +++ b/hw/i2c.h @@ -51,8 +51,6 @@ void i2c_end_transfer(i2c_bus *bus); void i2c_nack(i2c_bus *bus); int i2c_send(i2c_bus *bus, uint8_t data); int i2c_recv(i2c_bus *bus); -void i2c_slave_save(QEMUFile *f, i2c_slave *dev); -void i2c_slave_load(QEMUFile *f, i2c_slave *dev); #define I2C_SLAVE_FROM_QDEV(dev) DO_UPCAST(i2c_slave, qdev, dev) #define FROM_I2C_SLAVE(type, dev) DO_UPCAST(type, i2c, dev)