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)
commit987e8b3b03c2420e451ac91df4330ff767b56bb0
tree5db2ff229521fe705660abff59c6651c0f82cec2
parent2e4b4e79c6da9780d5f51a992249b51818ba5959
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