]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ea53506806f964fa7bd45a562a1c14675096568
treeac3051fe475b253365c2d245f054594494eb54f8
parent7adee0b7ca26e75c7588513ce4bd578836058643
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