media: i2c: imx290: Use device_property_read_u32() directly
PATCH v2 1/1 media: i2c: imx290: Use device_property_read_u32() directly
No need to call fwnode_property_read_u32(dev_fwnode()), when we have already existing helper. So use it.
Signed-off-by Andy Shevchenko <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
---
v2: added tag (Laurent), wrapped the long line (Laurent)
drivers/media/i2c/imx290.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/i2c/imx290.c +2 -2
@@ -1132,8 +1132,8 @@ static int imx290_init_clk(struct imx290 *imx290)u32 xclk_freq;int ret; - ret =fwnode_property_read_u32 (dev_fwnode (imx290->dev), -"clock-frequency" , &xclk_freq); + ret =device_property_read_u32 (imx290->dev,"clock-frequency" , + &xclk_freq);if (ret) {dev_err (imx290->dev,"Could not get xclk frequency\n" );return ret;
Signature · 1 line
2.39.1