OSDN Git Service

hw/misc/max111x: Create header file for documentation, TYPE_ macros
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Jul 2020 15:59:45 +0000 (16:59 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Jul 2020 15:59:45 +0000 (16:59 +0100)
commit3029681235b492026739b831a24a75d1e94e7be5
treed05b7c0fdf0b1c986428f98f1a5473be7b419525
parent871f82722ccddf8886acf19989289072bc73e873
hw/misc/max111x: Create header file for documentation, TYPE_ macros

Create a header file for the hw/misc/max111x device, in the
usual modern style for QOM devices:
 * definition of the TYPE_ constants and macros
 * definition of the device's state struct so that it can
   be embedded in other structs if desired
 * documentation of the interface

This allows us to use TYPE_MAX_1111 in the spitz.c code rather
than the string "max1111".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200628142429.17111-12-peter.maydell@linaro.org
MAINTAINERS
hw/arm/spitz.c
hw/misc/max111x.c
include/hw/misc/max111x.h [new file with mode: 0644]