]> 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)
commit445fe71496fa618d8ffbf122d2765bbefe354159
treeac3051fe475b253365c2d245f054594494eb54f8
parent3040e4ef5f56b51a7bd68f7578d8f78804f98a88
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