diff options
Diffstat (limited to 'hw/ads7846.c')
-rw-r--r-- | hw/ads7846.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/ads7846.c b/hw/ads7846.c index 1c65ffe15e..7d1cbc7114 100644 --- a/hw/ads7846.c +++ b/hw/ads7846.c @@ -155,13 +155,15 @@ static void ads7846_init(SSISlave *dev) } static SSISlaveInfo ads7846_info = { + .qdev.name ="ads7846", + .qdev.size = sizeof(ADS7846State), .init = ads7846_init, .transfer = ads7846_transfer }; static void ads7846_register_devices(void) { - ssi_register_slave("ads7846", sizeof(ADS7846State), &ads7846_info); + ssi_register_slave(&ads7846_info); } device_init(ads7846_register_devices) |