i2c: powermac: Simplify reading the "reg" and "i2c-address" property
authorAishwarya R <aishwaryarj100@gmail.com>
Wed, 8 Apr 2020 10:03:53 +0000 (15:33 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 26 Apr 2020 08:31:27 +0000 (10:31 +0200)
commit6b98bf01d2af40141cc7d831a1d2064f6f25e45e
treeac3051fe475b253365c2d245f054594494eb54f8
parent1b9e68533299253f5c7d87ccc4cd39ed0dccb37d
i2c: powermac: Simplify reading the "reg" and "i2c-address" property

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@gmail.com>
Tested-by: Erhard Furtner <erhard_f@mailbox.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-powermac.c