From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751922AbbCJBgF (ORCPT ); Mon, 9 Mar 2015 21:36:05 -0400 Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:51183 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751506AbbCJBgB (ORCPT ); Mon, 9 Mar 2015 21:36:01 -0400 Date: Tue, 10 Mar 2015 03:35:57 +0200 From: Sakari Ailus To: Lad Prabhakar Cc: Laurent Pinchart , Sakari Ailus , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Mauro Carvalho Chehab , Hans Verkuil , LMML , LKML , devicetree@vger.kernel.org Subject: Re: [PATCH v4] media: i2c: add support for omnivision's ov2659 sensor Message-ID: <20150310013556.GF11954@valkosipuli.retiisi.org.uk> References: <1425814407-22766-1-git-send-email-prabhakar.csengg@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425814407-22766-1-git-send-email-prabhakar.csengg@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Sun, Mar 08, 2015 at 11:33:27AM +0000, Lad Prabhakar wrote: ... > +static struct ov2659_platform_data * > +ov2659_get_pdata(struct i2c_client *client) > +{ > + struct ov2659_platform_data *pdata; > + struct device_node *endpoint; > + int ret; > + > + if (!IS_ENABLED(CONFIG_OF) || !client->dev.of_node) { > + dev_err(&client->dev, "ov2659_get_pdata: DT Node found\n"); > + return client->dev.platform_data; > + } > + > + endpoint = of_graph_get_next_endpoint(client->dev.of_node, NULL); > + if (!endpoint) > + return NULL; > + > + pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); > + if (!pdata) > + goto done; > + > + ret = of_property_read_u32(endpoint, "link-frequencies", > + &pdata->link_frequency); This is actually documented as being a 64-bit array. The smiapp wasn't even reading it from the endpoint node. Oh well... -- Regards, Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk