]> git.baikalelectronics.ru Git - kernel.git/commit
media: rcar-csi2: Switch to using fwnode instead of OF
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 14 Sep 2020 21:50:10 +0000 (23:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:14 +0000 (10:31 +0100)
commit52a0804d7af26c61e9d41320eae059b67555a8f8
tree7196cf73f15d3aca914ebce1dc3b2c47e513379c
parent9d0710cf356f244bc441d9e14395e5076854c057
media: rcar-csi2: Switch to using fwnode instead of OF

Use the fwnode_graph_get_endpoint_by_id() interface instead of
of_graph_get_endpoint_by_regs() to fetch the fwnode. This saves
translating between a device_node and fwnode_handle.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-csi2.c