Thread (6 messages) 6 messages, 3 authors, 2020-04-26
STALE2228d

[PATCH] i2c: powermac: Simplify reading the "reg" and "i2c-address" property

From: Aishwarya R <hidden>
Date: 2020-04-15 13:20:37
Also in: linux-i2c, lkml

quoted
Use of_property_read_u32 to read the "reg" and "i2c-address" property
instead of using of_get_property to check the return values.

Signed-off-by: Aishwarya R <redacted>
This is quite a fragile driver. Have you tested it on HW?
This change is not tested with the Hardware.
But of_property_read_u32 is better here than generic of_get_property.
This make sure that value read properly independent of system endianess.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help