From patchwork Tue Nov 22 09:41:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9440677 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 6452C60235 for ; Tue, 22 Nov 2016 09:41:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67832284AF for ; Tue, 22 Nov 2016 09:41:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BCBB284B5; Tue, 22 Nov 2016 09:41:36 +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 E6658284AF for ; Tue, 22 Nov 2016 09:41:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2735B6E266; Tue, 22 Nov 2016 09:41:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6CE9A6E266 for ; Tue, 22 Nov 2016 09:41:33 +0000 (UTC) Received: by mail-wm0-x233.google.com with SMTP id g23so15133244wme.1 for ; Tue, 22 Nov 2016 01:41:33 -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=rFRn0ikeCiLndtJ4N9LQiB5w3vL0fcZYrdupq2WlYx8=; b=O/Y2Hs5ZFrqYJBThiWmKQZpt+qfFV49CUcoExY824UUoNfo/puKQr683cc/qf+Qki+ xD7vfWo/jvq0/MpAJSyJiqKlEahiVS6BJL/QFZqLpCGS93hZgncyAVYSopFh1J55/Ar8 vQgtubM7C55KpfR5rhiSGRqZQVpHWgajQVMm/uj9VUOzgwbqKFXLtZC8mDbEjMSZSRKJ am3aSxPw5cQ4W1KdFSB2BKTDLcsfJbWjEX6836tcN2ybKPaooslqbO3k7x96+/5y6AYw qxxSm0GRRPdhipH9q9SZEgT0gZBxSBAX+nDBD/4u8QgJ/gM8mXhZP6yYSc4BBOJZ2cKV DUSg== 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=rFRn0ikeCiLndtJ4N9LQiB5w3vL0fcZYrdupq2WlYx8=; b=JgnpsPkWenwFGuBx+WjRvIFfkOFFDCfScx8OkRibz+sedN/qZ4DXclNkGeofJzv5VZ kLJ/k1qrFSKy2pybbHUq742WXSllno+ZaemTO86Bi5pBsui4qvqUqj+Ytr5er4nPwfHc UdKb6ZU7jsMYxbnezcPfGK6U7f0fhjHYLA3F9g9oBbjbOCiC2BpsMBuqOZAW8PsnE2hd ccPngUvwZ3M7U40gu6N4yrFeYwEWzLzUnXEUM0Vma7eensUQ0OH9ogaUVNTRw4Nv9YEU Mr2ilgxFN+ZPYC5xI0lSr6YrWVXYjgaIg5fp/i9/vvqaAfw3B3BLFpntdrw4neAvSGym 5QUg== X-Gm-Message-State: AKaTC039sWXh7cu4wogOYPN2lfFvjZTvlyuBKcQZBRj9Zljp5fOsDBf0zu7dRa7P8JrHnZl7 X-Received: by 10.194.93.104 with SMTP id ct8mr15748120wjb.87.1479807691869; Tue, 22 Nov 2016 01:41:31 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id x5sm29802815wje.36.2016.11.22.01.41.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 01:41:31 -0800 (PST) From: Bartosz Golaszewski To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori Subject: [PATCH] drm: tilcdc: fix a DT property parsing Date: Tue, 22 Nov 2016 10:41:29 +0100 Message-Id: <1479807689-23804-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 - the option in the binding is called 'max-width' while the code expects 'ti,max-width'. Make the driver code consistent with the binding. Signed-off-by: Bartosz Golaszewski --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index a7c91f7..4d3adf8e 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -302,7 +302,7 @@ 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);