Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4820148ybe; Mon, 9 Sep 2019 15:22:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2GXtxS9pEzfNPqSnlkn/raUw/I8nceTR+QOhBxWNfnWGFAsWQ95vs5YrNjhysyBQHmVfy X-Received: by 2002:a50:d718:: with SMTP id t24mr24480692edi.168.1568067759271; Mon, 09 Sep 2019 15:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568067759; cv=none; d=google.com; s=arc-20160816; b=PSXBz0OwAjZyR78hc/pdEctjr4uONyelptuZrZOz1nzqSvubYxz+tOkyIyzWgCTRex S41CPhwXzWbmbImvZDHfY2D1lXXA53TZGWxQe+04eh+PsAGoQCCWRFXLO1L7hFDs4E48 +8nqcpL9WdsMisx6zrVjmESzyDnshdgAIkeJk7Bz9YkyecpWsAy+uqxtcpqiXRStcezJ rd8FRUZ/zc17B2iqGnKon9liFe5BcN9mcpbcd7QQp5JWPuruVXrIUL0qCqb2LdIStqIN iJVkfL5JwOoaW0+41ugZC0hNoDYXDxr57gVFE/VWtCWcE1Ul33m4W8cnWxgt9pKR/f6A KLlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=piiJOhTeK2eZ7LJqCGQHIhef1DYgALvqhzBtsArPtac=; b=uolXSvGx8WIvrtvxSAtYPMMomioPolKNclSU+oSKIr/1soTXaRS6BQaZMWm0sWO/ET E18YbQ6Xpomrs/wr98Hjm/e7r5bmvWyIgzaOK/nTGHfgW2ie22AH2yH04J4qSTvgGOLp ZWbTXAoP2qr/fkNdr5CIoaEVYUGeRwW96j+7eC95xhyXqRoCED9QWpm7qTW4ih4OhZSG 5Ea090ObHuPxs961x/ipejUFfOlMeQ69V2rMz81TZY7A55WhYdJ6yb6YJhjKs6tOtWz7 Gzu9T840Iie2qjx6o+bjhnW8OKjsFYpN8F6FkYLGxAiMmNDV3e0M+40ZLlSXDfEvxwbE t/5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rv27si7983511ejb.136.2019.09.09.15.22.14; Mon, 09 Sep 2019 15:22:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388464AbfIIJmA (ORCPT + 99 others); Mon, 9 Sep 2019 05:42:00 -0400 Received: from retiisi.org.uk ([95.216.213.190]:41300 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbfIIJl7 (ORCPT ); Mon, 9 Sep 2019 05:41:59 -0400 Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2a01:4f9:c010:4572::80:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id BE961634C87; Mon, 9 Sep 2019 12:41:54 +0300 (EEST) Received: from sailus by valkosipuli.localdomain with local (Exim 4.92) (envelope-from ) id 1i7GBH-0000IX-Jk; Mon, 09 Sep 2019 12:41:55 +0300 Date: Mon, 9 Sep 2019 12:41:55 +0300 From: Sakari Ailus To: Jan Kotas Cc: Maxime Ripard , "mchehab@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , Rafal Ciepiela , "linux-media@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 3/3] media: Add support for Cadence CSI2RX 2.1 Message-ID: <20190909094155.GC843@valkosipuli.retiisi.org.uk> References: <20190905105601.27034-1-jank@cadence.com> <20190905105601.27034-4-jank@cadence.com> <20190906080119.GF1586@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jan, On Mon, Sep 09, 2019 at 09:24:15AM +0000, Jan Kotas wrote: > >> @@ -439,6 +535,9 @@ static int csi2rx_probe(struct platform_device *pdev) > >> csi2rx->dev = &pdev->dev; > >> mutex_init(&csi2rx->lock); > >> > >> + of_id = of_match_node(csi2rx_of_table, pdev->dev.of_node); > >> + csi2rx->vops = (struct csi2rx_vops *)of_id->data; > > > > The cast isn't needed, is it? > > It’s not, but doesn’t make it more readable? If there's no need for it, please don't use explicit cast. -- Sakari Ailus