hw/ppc/sam460ex: Correctly set MAL properties
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 2 Feb 2023 13:06:42 +0000 (14:06 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Feb 2023 21:29:02 +0000 (22:29 +0100)
commit07b29eb378732ac48632c503df85b1837d87e4d8
tree419ef261cc6c2187ad26af85d06dab9acf6f1c7b
parentc09b5158e17f7112678a9d80e13419195e45dba8
hw/ppc/sam460ex: Correctly set MAL properties

MAL properties are declared as uint8_t:

  static Property ppc4xx_mal_properties[] = {
      DEFINE_PROP_UINT8("txc-num", Ppc4xxMalState, txcnum, 0),
      DEFINE_PROP_UINT8("rxc-num", Ppc4xxMalState, rxcnum, 0),
      DEFINE_PROP_END_OF_LIST(),
  };

Correct the API use by setting the property using
qdev_prop_set_uint8(). No behavioral change.

Fixes: da116a8aab ("ppc/ppc405: QOM'ify MAL")
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230203145536.17585-7-philmd@linaro.org>
hw/ppc/sam460ex.c