From patchwork Tue Feb 3 14:53:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5768961 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 04EB39F399 for ; Tue, 3 Feb 2015 14:54:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33BBD200E6 for ; Tue, 3 Feb 2015 14:54:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 47264200DE for ; Tue, 3 Feb 2015 14:54:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965803AbbBCOxy (ORCPT ); Tue, 3 Feb 2015 09:53:54 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:49294 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965791AbbBCOxs (ORCPT ); Tue, 3 Feb 2015 09:53:48 -0500 Received: by mail-pa0-f49.google.com with SMTP id fa1so97151124pad.8; Tue, 03 Feb 2015 06:53:48 -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=sbukUJxO1FpJZcnX7uKC+GWhTl7buZVi/mdttQoV04w=; b=pyyDirtFtl/s9TAY1toWEUBk3f0faaSm7Co/NoGKEVa6XzXe/wbiuJDZujPRuzNsIm UI5GlXsrVLSTC1oyGdpPqjvFahNQ17Zh2vd7sCuc+OT0IXtSaxGDd+nY9+E2bx8Aurg8 KhLqmTPB4mWX8vuMPQMcgTCMFKkMdSMUgVq7/Ab7svmUlp/yG4Mke8QhgJaUInxtUvIV T8205Lczaz8dqjuuoWsYCcOxfUg3j+rm0MHnOgQjEFYgk52kmDpW0qqN7ojxDYz1Gs9e XNf++2S+CGG13Ft65kgxBw/JmmG4/4jq4rEtLRQzsZxoXH61ifi/IQeAhZ3P66VQWmf/ vayg== X-Received: by 10.70.53.65 with SMTP id z1mr17458116pdo.38.1422975228259; Tue, 03 Feb 2015 06:53:48 -0800 (PST) Received: from localhost.localdomain ([122.169.140.147]) by mx.google.com with ESMTPSA id mc9sm2414892pdb.96.2015.02.03.06.53.45 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Feb 2015 06:53:47 -0800 (PST) From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: Sudip Mukherjee , linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] staging: sm7xxfb: fix CamelCase Date: Tue, 3 Feb 2015 20:23:33 +0530 Message-Id: <1422975214-15250-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1422975214-15250-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1422975214-15250-1-git-send-email-sudipm.mukherjee@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=unavailable 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 since mixed case names are not encouraged in coding, so those has been changed to their corresponding lowercase version. Signed-off-by: Sudip Mukherjee --- drivers/staging/sm7xxfb/sm7xx.h | 14 +++++++------- drivers/staging/sm7xxfb/sm7xxfb.c | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/sm7xxfb/sm7xx.h b/drivers/staging/sm7xxfb/sm7xx.h index 8599861..fe63cd7 100644 --- a/drivers/staging/sm7xxfb/sm7xx.h +++ b/drivers/staging/sm7xxfb/sm7xx.h @@ -29,14 +29,14 @@ #define dac_reg (0x3c8) #define dac_val (0x3c9) -extern void __iomem *smtc_RegBaseAddress; -#define smtc_mmiowb(dat, reg) writeb(dat, smtc_RegBaseAddress + reg) -#define smtc_mmioww(dat, reg) writew(dat, smtc_RegBaseAddress + reg) -#define smtc_mmiowl(dat, reg) writel(dat, smtc_RegBaseAddress + reg) +extern void __iomem *smtc_regbaseaddress; +#define smtc_mmiowb(dat, reg) writeb(dat, smtc_regbaseaddress + reg) +#define smtc_mmioww(dat, reg) writew(dat, smtc_regbaseaddress + reg) +#define smtc_mmiowl(dat, reg) writel(dat, smtc_regbaseaddress + reg) -#define smtc_mmiorb(reg) readb(smtc_RegBaseAddress + reg) -#define smtc_mmiorw(reg) readw(smtc_RegBaseAddress + reg) -#define smtc_mmiorl(reg) readl(smtc_RegBaseAddress + reg) +#define smtc_mmiorb(reg) readb(smtc_regbaseaddress + reg) +#define smtc_mmiorw(reg) readw(smtc_regbaseaddress + reg) +#define smtc_mmiorl(reg) readl(smtc_regbaseaddress + reg) #define SIZE_SR00_SR04 (0x04 - 0x00 + 1) #define SIZE_SR10_SR24 (0x24 - 0x10 + 1) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 2ae9fd0..3150f0b 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -56,7 +56,7 @@ struct smtcfb_info { u32 colreg[17]; }; -void __iomem *smtc_RegBaseAddress; /* Memory Map IO starting address */ +void __iomem *smtc_regbaseaddress; /* Memory Map IO starting address */ static struct fb_var_screeninfo smtcfb_var = { .xres = 1024, @@ -711,8 +711,8 @@ static void smtc_free_fb_info(struct smtcfb_info *sfb) static void smtc_unmap_mmio(struct smtcfb_info *sfb) { - if (sfb && smtc_RegBaseAddress) - smtc_RegBaseAddress = NULL; + if (sfb && smtc_regbaseaddress) + smtc_regbaseaddress = NULL; } /* @@ -823,7 +823,7 @@ static int smtcfb_pci_probe(struct pci_dev *pdev, #else sfb->lfb = ioremap(mmio_base, 0x00800000); #endif - sfb->mmio = (smtc_RegBaseAddress = + sfb->mmio = (smtc_regbaseaddress = sfb->lfb + 0x00700000); sfb->dp_regs = sfb->lfb + 0x00408000; sfb->vp_regs = sfb->lfb + 0x0040c000; @@ -833,7 +833,7 @@ static int smtcfb_pci_probe(struct pci_dev *pdev, dev_info(&pdev->dev, "sfb->lfb=%p", sfb->lfb); } #endif - if (!smtc_RegBaseAddress) { + if (!smtc_regbaseaddress) { dev_err(&pdev->dev, "%s: unable to map memory mapped IO!", sfb->fb.fix.id); @@ -859,7 +859,7 @@ static int smtcfb_pci_probe(struct pci_dev *pdev, smem_size = SM722_VIDEOMEMORYSIZE; sfb->dp_regs = ioremap(mmio_base, 0x00a00000); sfb->lfb = sfb->dp_regs + 0x00200000; - sfb->mmio = (smtc_RegBaseAddress = + sfb->mmio = (smtc_regbaseaddress = sfb->dp_regs + 0x000c0000); sfb->vp_regs = sfb->dp_regs + 0x800;