From patchwork Thu Jan 8 08:17:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 5591281 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D1B78BF6C3 for ; Thu, 8 Jan 2015 08:18:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1531820383 for ; Thu, 8 Jan 2015 08:18:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F1E8020115 for ; Thu, 8 Jan 2015 08:18:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754239AbbAHISM (ORCPT ); Thu, 8 Jan 2015 03:18:12 -0500 Received: from mail-we0-f177.google.com ([74.125.82.177]:50532 "EHLO mail-we0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753270AbbAHISK (ORCPT ); Thu, 8 Jan 2015 03:18:10 -0500 Received: by mail-we0-f177.google.com with SMTP id q59so1087341wes.8; Thu, 08 Jan 2015 00:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cB4VzYDJnet38P9pRXwbbtq2WvHrM5bLzmLkZFXGzUU=; b=Yt6XmPAThxsaTfSKuXO33XlccmRoohRTsvtPfVMCaV8ctLUiPyZ/6JK6qwElQLHZAd asNkXnXXlmFbj+TkHOuVfDTJoGcW6TUA7Rj6wv22axKqJC9IklqcRovlJPMH1cwRhbum Ejjp7fsUuPcIgNkIYDasT6TojfTexfEVLYaaR/s3IdtjtPR/4J2U+YJLOCyKa2Erhqz1 UPx0/OCtC/96Ae8FKAmloPyhmYscscTNJDIHfqOlrPRjI9PD5Q8/ymns7Dn1xo0EiOyA mRXV7aRr57bavhkAr2H312oY4fyuomFy8WAzaAgdmBX8sezLgm2vY9t2LqtURyeQ7Utz LThA== X-Received: by 10.194.206.70 with SMTP id lm6mr3956234wjc.30.1420705088913; Thu, 08 Jan 2015 00:18:08 -0800 (PST) Received: from tango-charlie.Home ([94.10.25.115]) by mx.google.com with ESMTPSA id wa5sm5143443wjc.8.2015.01.08.00.18.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jan 2015 00:18:07 -0800 (PST) From: "Lad, Prabhakar" To: LFBDEV , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Maxime Ripard Cc: LKML , "Lad, Prabhakar" Subject: [PATCH 1/2] fbdev: ssd1307fb: set default height if not found in DT node Date: Thu, 8 Jan 2015 08:17:58 +0000 Message-Id: <1420705079-3741-2-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1420705079-3741-1-git-send-email-prabhakar.csengg@gmail.com> References: <1420705079-3741-1-git-send-email-prabhakar.csengg@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP this patch sets the default height if its not found in DT. Signed-off-by: Lad, Prabhakar Acked-by: Maxime Ripard --- drivers/video/fbdev/ssd1307fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index f4daa59..70e3ce8 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -460,7 +460,7 @@ static int ssd1307fb_probe(struct i2c_client *client, par->width = 96; if (of_property_read_u32(node, "solomon,height", &par->height)) - par->width = 16; + par->height = 16; if (of_property_read_u32(node, "solomon,page-offset", &par->page_offset)) par->page_offset = 1;