* [RESEND PATCH 1/1] ov5640: Use dev_fwnode() to obtain device's fwnode
@ 2018-04-24 11:10 Sakari Ailus
2018-04-24 11:50 ` Maxime Ripard
0 siblings, 1 reply; 2+ messages in thread
From: Sakari Ailus @ 2018-04-24 11:10 UTC (permalink / raw)
To: linux-media; +Cc: maxime.ripard, slongerbeam
Use dev_fwnode() on the device instead of getting an fwnode handle of the
device's OF node. The result is the same on OF-based systems and looks
better, too.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
Fixed Maxime's e-mail.
drivers/media/i2c/ov5640.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c
index 852026baa2e7..7acd3b44d194 100644
--- a/drivers/media/i2c/ov5640.c
+++ b/drivers/media/i2c/ov5640.c
@@ -2536,8 +2536,8 @@ static int ov5640_probe(struct i2c_client *client,
sensor->ae_target = 52;
- endpoint = fwnode_graph_get_next_endpoint(
- of_fwnode_handle(client->dev.of_node), NULL);
+ endpoint = fwnode_graph_get_next_endpoint(dev_fwnode(&client->dev),
+ NULL);
if (!endpoint) {
dev_err(dev, "endpoint node not found\n");
return -EINVAL;
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND PATCH 1/1] ov5640: Use dev_fwnode() to obtain device's fwnode
2018-04-24 11:10 [RESEND PATCH 1/1] ov5640: Use dev_fwnode() to obtain device's fwnode Sakari Ailus
@ 2018-04-24 11:50 ` Maxime Ripard
0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2018-04-24 11:50 UTC (permalink / raw)
To: Sakari Ailus; +Cc: linux-media, slongerbeam
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
On Tue, Apr 24, 2018 at 02:10:29PM +0300, Sakari Ailus wrote:
> Use dev_fwnode() on the device instead of getting an fwnode handle of the
> device's OF node. The result is the same on OF-based systems and looks
> better, too.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Maxime
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-24 11:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-24 11:10 [RESEND PATCH 1/1] ov5640: Use dev_fwnode() to obtain device's fwnode Sakari Ailus
2018-04-24 11:50 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox