]> git.baikalelectronics.ru Git - kernel.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)
commitf93cf15c4863aabaff626292967cd670d345b520
tree122a96379e61b616c1ee2705c6d35b26887f9652
parent9bccac21e8c5d4fcf8b732ca284aa45118c81a79
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