max7310: finish qdev'ication
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 11 Feb 2011 20:57:38 +0000 (23:57 +0300)
committerAndrzej Zaborowski <balrog@zabor.org>
Fri, 11 Feb 2011 22:31:17 +0000 (23:31 +0100)
commitf7d5e86fb3d69942e98e1f5ce75d1f6088713d71
tree5db2ff229521fe705660abff59c6651c0f82cec2
parent91cda7458a4903a509cfb382b57c1f4f370993b5
max7310: finish qdev'ication

1) Move GPIO-related functionality to qdev. Now one can use directly
qdev_get_gpio_in()/qdev_connect_gpio_out() on max7310 devices.

2) Make reset to be called through qdev.reset callback.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/i2c.h
hw/max7310.c