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

Wolfram Sang wsa at the-dreams.de
Wed Apr 15 21:12:55 AEST 2020


On Wed, Apr 08, 2020 at 03:33:53PM +0530, Aishwarya R wrote:
> 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 <aishwaryarj100 at gmail.com>

This is quite a fragile driver. Have you tested it on HW?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20200415/8235b311/attachment.sig>


More information about the Linuxppc-dev mailing list