From patchwork Mon Nov 28 11:37:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9449379 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CB11D600CB for ; Mon, 28 Nov 2016 11:37:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB4E923B3D for ; Mon, 28 Nov 2016 11:37:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF3282574A; Mon, 28 Nov 2016 11:37:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0098323B3D for ; Mon, 28 Nov 2016 11:37:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 40D006E223; Mon, 28 Nov 2016 11:37:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x235.google.com (mail-wj0-x235.google.com [IPv6:2a00:1450:400c:c01::235]) by gabe.freedesktop.org (Postfix) with ESMTPS id BA30B6E223 for ; Mon, 28 Nov 2016 11:37:27 +0000 (UTC) Received: by mail-wj0-x235.google.com with SMTP id qp4so113203870wjc.3 for ; Mon, 28 Nov 2016 03:37:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=rxdUcRf1a0aqgt8YTowLsxRdALZptC19oU8UkrlCaGE=; b=2SmTxW8861I99PUoeBGegUl0EXPv1qOhq48qf/b8eCfhNvcRgpJwYC1jKRwDVWGfLr vTJ6q3MI383LHDwPPKqhUvSAMcc54vywjtjrU6HIRTjfb4KAqCRjEIB+yDO1mGitXjm2 4V1dyAid6smzuarVqysx2uDUzetstUhYZz9k0/XzjsLuvu3pkQlCTBi+wRzChreDXzZc sxVb53EGj4x1pfmyz8UpKIuV59x8tNL2P783hevToRQQDiwZXyod9l3RHL7UDoBtkYH4 iYxE7KUfYBNIwtzERnDt2hEY+m7vKGGuzSkzRxu35W+hVTGWSB6DonN70XCAS2WT9Omw Sa4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rxdUcRf1a0aqgt8YTowLsxRdALZptC19oU8UkrlCaGE=; b=jJreGP+GnqKc/JYaNscq9e5yD5k2PzDc5N79Wrhemdqp5DxynPIaW63tFXj14zjwxA WbK+VA9z08CWAk0gn+Rrf2s7cI5IfLbjC7OKB2l66wH6R7BQvjvLVpeeHsYe4Ht4FhMD RIf/aMvqf9HpFjc2jfbqqPz18OPCuJ8tbb6uzLFArlSAocLsOwejTIolRca3PhWv9OL8 KyCH9NuhSk/pPo+loU6z9t9YRmkIOxwVx6r7zjxttn6lBfxEikgMLXP3lPO5NWyEkmvo 5wNYH6EW9iDBBT3MJV6w2ryRbNDo+MFVTx6wnVrPxVfY1in1Uz6Px08QQQyXJnkCWGCX Fvww== X-Gm-Message-State: AKaTC01B/I1xL6+dW5fgEnRdgZdASx1tNzzsjB6Qrmp+pXwqrdtLPv3gPXs4rCHMZ5I09RL/ X-Received: by 10.194.209.169 with SMTP id mn9mr17787115wjc.114.1480333046070; Mon, 28 Nov 2016 03:37:26 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id r138sm28475780wme.9.2016.11.28.03.37.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Nov 2016 03:37:25 -0800 (PST) From: Bartosz Golaszewski To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori Subject: [PATCH v2] drm: tilcdc: fix parsing of some DT properties Date: Mon, 28 Nov 2016 12:37:23 +0100 Message-Id: <1480333043-1292-1-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 Cc: Peter Ujfalusi , Bartosz Golaszewski , LKML , linux-drm , arm-soc X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The DT binding for tildc is not consistent with the driver code: there are two options - 'max-width' and 'max-pixelclock' specified in the documentation which are parsed as 'ti,max-width' and 'ti'max-pixelclock' respectively. Make the driver code consistent with the binding. Signed-off-by: Bartosz Golaszewski Reviewed-by: Jyri Sarha --- v1 -> v2: - fix max-pixelclock too drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 5efb369..bd0a3bd 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -296,12 +296,12 @@ static int tilcdc_init(struct drm_driver *ddrv, struct device *dev) DBG("Maximum Bandwidth Value %d", priv->max_bandwidth); - if (of_property_read_u32(node, "ti,max-width", &priv->max_width)) + if (of_property_read_u32(node, "max-width", &priv->max_width)) priv->max_width = TILCDC_DEFAULT_MAX_WIDTH; DBG("Maximum Horizontal Pixel Width Value %dpixels", priv->max_width); - if (of_property_read_u32(node, "ti,max-pixelclock", + if (of_property_read_u32(node, "max-pixelclock", &priv->max_pixelclock)) priv->max_pixelclock = TILCDC_DEFAULT_MAX_PIXELCLOCK;