Diff for /qemu/hw/ssd0323.c between versions 1.1.1.3 and 1.1.1.7

version 1.1.1.3, 2018/04/24 17:25:10 version 1.1.1.7, 2018/04/24 19:50:32
Line 4 Line 4
  * Copyright (c) 2006-2007 CodeSourcery.   * Copyright (c) 2006-2007 CodeSourcery.
  * Written by Paul Brook   * Written by Paul Brook
  *   *
  * This code is licenced under the GPL.   * This code is licensed under the GPL.
  */   */
   
 /* The controller can support a variety of different displays, but we only  /* The controller can support a variety of different displays, but we only
Line 322  static int ssd0323_load(QEMUFile *f, voi Line 322  static int ssd0323_load(QEMUFile *f, voi
     return 0;      return 0;
 }  }
   
 static void ssd0323_init(SSISlave *dev)  static int ssd0323_init(SSISlave *dev)
 {  {
     ssd0323_state *s = FROM_SSI_SLAVE(ssd0323_state, dev);      ssd0323_state *s = FROM_SSI_SLAVE(ssd0323_state, dev);
   
Line 335  static void ssd0323_init(SSISlave *dev) Line 335  static void ssd0323_init(SSISlave *dev)
   
     qdev_init_gpio_in(&dev->qdev, ssd0323_cd, 1);      qdev_init_gpio_in(&dev->qdev, ssd0323_cd, 1);
   
     register_savevm("ssd0323_oled", -1, 1, ssd0323_save, ssd0323_load, s);      register_savevm(&dev->qdev, "ssd0323_oled", -1, 1,
                       ssd0323_save, ssd0323_load, s);
       return 0;
   }
   
   static void ssd0323_class_init(ObjectClass *klass, void *data)
   {
       SSISlaveClass *k = SSI_SLAVE_CLASS(klass);
   
       k->init = ssd0323_init;
       k->transfer = ssd0323_transfer;
 }  }
   
 static SSISlaveInfo ssd0323_info = {  static TypeInfo ssd0323_info = {
     .qdev.name = "ssd0323",      .name          = "ssd0323",
     .qdev.size = sizeof(ssd0323_state),      .parent        = TYPE_SSI_SLAVE,
     .init = ssd0323_init,      .instance_size = sizeof(ssd0323_state),
     .transfer = ssd0323_transfer      .class_init    = ssd0323_class_init,
 };  };
   
 static void ssd03232_register_devices(void)  static void ssd03232_register_types(void)
 {  {
     ssi_register_slave(&ssd0323_info);      type_register_static(&ssd0323_info);
 }  }
   
 device_init(ssd03232_register_devices)  type_init(ssd03232_register_types)

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.7


unix.superglobalmegacorp.com