summaryrefslogtreecommitdiffstats
path: root/include/hw/misc/pca9552.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-06-23 09:27:16 +0200
committerPeter Maydell2020-06-26 15:30:28 +0200
commit8208335b9539e7b5aa4702b36e2f9a8abd704079 (patch)
tree6fa02c86451214fa363f864a994f1089178704e4 /include/hw/misc/pca9552.h
parenthw/i2c/core: Add i2c_try_create_slave() and i2c_realize_and_unref() (diff)
downloadqemu-8208335b9539e7b5aa4702b36e2f9a8abd704079.tar.gz
qemu-8208335b9539e7b5aa4702b36e2f9a8abd704079.tar.xz
qemu-8208335b9539e7b5aa4702b36e2f9a8abd704079.zip
hw/misc/pca9552: Rename 'nr_leds' as 'pin_count'
The PCA9552 device does not expose LEDs, but simple pins to connnect LEDs to. To be clearer with the device model, rename 'nr_leds' as 'pin_count'. 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-3-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/misc/pca9552.h')
-rw-r--r--include/hw/misc/pca9552.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/misc/pca9552.h b/include/hw/misc/pca9552.h
index ebb43c63fe..bc5ed31087 100644
--- a/include/hw/misc/pca9552.h
+++ b/include/hw/misc/pca9552.h
@@ -26,7 +26,7 @@ typedef struct PCA9552State {
uint8_t regs[PCA9552_NR_REGS];
uint8_t max_reg;
- uint8_t nr_leds;
+ uint8_t pin_count;
} PCA9552State;
#endif