From patchwork Thu Oct 10 06:30:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 3014181 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C624BBF924 for ; Thu, 10 Oct 2013 06:30:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 154AA203AD for ; Thu, 10 Oct 2013 06:30:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1A295203A3 for ; Thu, 10 Oct 2013 06:30:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752352Ab3JJGad (ORCPT ); Thu, 10 Oct 2013 02:30:33 -0400 Received: from mail-ee0-f49.google.com ([74.125.83.49]:52921 "EHLO mail-ee0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752330Ab3JJGab (ORCPT ); Thu, 10 Oct 2013 02:30:31 -0400 Received: by mail-ee0-f49.google.com with SMTP id d41so893275eek.36 for ; Wed, 09 Oct 2013 23:30:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :content-type; bh=jI1OESLyOca/PcXJwYOCph9JHQU8lckCqZf7XFExOag=; b=A2Yhpmx051ij24at1Do6L21xxVf4A8/2ITutJlqvGUX6hXpboaqfmLLZcCEs5kOLAF pG+ji0/KyTaLoup50w0H/CYN/d4boS7MjT3CpLYETm45nYhuKYIOv8WYiK+W5ws2JGbs 0+WcolrtLCMz+2OC+IHdqTo+JicxmUKF7Drr4NhVN9S9nHbfOs/0oyB9bBKwAHwnhZ1g 9+OaBe9QwecNim873V4gSsjXj8cG1JFKr5L/iobi3cgDhnYrFnjHXiILlPCJ3/Bfscdx NfhtBJFubhXVyrl/mAoivtETe2b6X8BaAAkjYPK4/uQU3t/XSyXiWiilcxMYNXK1ZiPa tDzg== X-Gm-Message-State: ALoCoQlg2+1AOSgALMvDfj8mwklPKvm32e8iYZAMUhx+WjEPJnoMJtfRzi8hvCDSvz4Wz1sAAufd X-Received: by 10.14.5.3 with SMTP id 3mr11532808eek.49.1381386630781; Wed, 09 Oct 2013 23:30:30 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id f49sm97481440eec.7.1969.12.31.16.00.00 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 09 Oct 2013 23:30:30 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: joe@perches.com, Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Grant Likely , Rob Herring , linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 1/3] video: xilinxfb: Use standard variable name convention Date: Thu, 10 Oct 2013 08:30:20 +0200 Message-Id: <631df9a44b366af4129d00f1d4e1d3baad7d4903.1381386616.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, MIME_HEADER_CTYPE_ONLY, MIME_NO_TEXT, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_TVD_MIME_EPI, T_TVD_MIME_NO_HEADERS, 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 s/op/pdev/ in xilinxfb_of_probe(). No functional chagnes. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/video/xilinxfb.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 1.8.2.3 diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 0e1dd33..d12345f 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c @@ -411,7 +411,7 @@ static int xilinxfb_release(struct device *dev) * OF bus binding */ -static int xilinxfb_of_probe(struct platform_device *op) +static int xilinxfb_of_probe(struct platform_device *pdev) { const u32 *prop; u32 tft_access = 0; @@ -425,7 +425,7 @@ static int xilinxfb_of_probe(struct platform_device *op) /* Allocate the driver data region */ drvdata = kzalloc(sizeof(*drvdata), GFP_KERNEL); if (!drvdata) { - dev_err(&op->dev, "Couldn't allocate device private record\n"); + dev_err(&pdev->dev, "Couldn't allocate device private record\n"); return -ENOMEM; } @@ -433,7 +433,7 @@ static int xilinxfb_of_probe(struct platform_device *op) * To check whether the core is connected directly to DCR or BUS * interface and initialize the tft_access accordingly. */ - of_property_read_u32(op->dev.of_node, "xlnx,dcr-splb-slave-if", + of_property_read_u32(pdev->dev.of_node, "xlnx,dcr-splb-slave-if", &tft_access); /* @@ -457,29 +457,29 @@ static int xilinxfb_of_probe(struct platform_device *op) } #endif - prop = of_get_property(op->dev.of_node, "phys-size", &size); + prop = of_get_property(pdev->dev.of_node, "phys-size", &size); if ((prop) && (size >= sizeof(u32)*2)) { pdata.screen_width_mm = prop[0]; pdata.screen_height_mm = prop[1]; } - prop = of_get_property(op->dev.of_node, "resolution", &size); + prop = of_get_property(pdev->dev.of_node, "resolution", &size); if ((prop) && (size >= sizeof(u32)*2)) { pdata.xres = prop[0]; pdata.yres = prop[1]; } - prop = of_get_property(op->dev.of_node, "virtual-resolution", &size); + prop = of_get_property(pdev->dev.of_node, "virtual-resolution", &size); if ((prop) && (size >= sizeof(u32)*2)) { pdata.xvirt = prop[0]; pdata.yvirt = prop[1]; } - if (of_find_property(op->dev.of_node, "rotate-display", NULL)) + if (of_find_property(pdev->dev.of_node, "rotate-display", NULL)) pdata.rotate_screen = 1; - dev_set_drvdata(&op->dev, drvdata); - return xilinxfb_assign(op, drvdata, &pdata); + dev_set_drvdata(&pdev->dev, drvdata); + return xilinxfb_assign(pdev, drvdata, &pdata); } static int xilinxfb_of_remove(struct platform_device *op)