net: can: cc770: Simplify parsing DT properties
authorRob Herring (Arm) <robh@kernel.org>
Tue, 3 Sep 2024 13:57:30 +0000 (08:57 -0500)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 9 Sep 2024 06:16:36 +0000 (08:16 +0200)
commitdfb970cc5f612a95fdf142f34610fccb3b2fc18c
tree763c80a38b3aa0cc868576d8bb9f7860084469d6
parentc259acab839e57eab0318f32da4ae803a8d59397
net: can: cc770: Simplify parsing DT properties

Use of the typed property accessors is preferred over of_get_property().
The existing code doesn't work on little endian systems either. Replace
the of_get_property() calls with of_property_read_bool() and
of_property_read_u32().

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20240903135731.405635-1-robh@kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/cc770/cc770_platform.c