]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: of: simplify reading the "reg" property
authorWolfram Sang <wsa@the-dreams.de>
Thu, 18 Jan 2018 12:11:33 +0000 (13:11 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 26 Feb 2018 19:40:46 +0000 (20:40 +0100)
commita1671af2863376abb9f200c5db3c9097c0490e87
tree122a96379e61b616c1ee2705c6d35b26887f9652
parent4f3ae38acb3c93cbd8aab9a9fb76d5f661ab578d
i2c: of: simplify reading the "reg" property

of_get_property() is a bit cumbersome to use. Replace it with the newer
of_property_read_u32() for more readable code.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-of.c