OSDN Git Service

hw/misc/pca9552: Add generic PCA955xClass, parent of TYPE_PCA9552
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 23 Jun 2020 07:27:18 +0000 (09:27 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Jun 2020 13:30:28 +0000 (14:30 +0100)
commit736132e455eea08e37fe21b4140b8088f2c0956b
tree1b0e428fade5e1f533d4cb2f17154eb07ade4867
parentec17228a25e7fd46287842322f8dc4923eccca92
hw/misc/pca9552: Add generic PCA955xClass, parent of TYPE_PCA9552

Extract the code common to the PCA955x family in PCA955xClass,
keeping the PCA9552 specific parts into pca9552_class_init().
Remove the 'TODO' comment added in commit 5141d4158cf.

Suggested-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20200623072723.6324-5-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/pca9552.c
include/hw/misc/pca9552.h