From patchwork Thu Dec 1 18:34:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SRIKANT RITOLIA X-Patchwork-Id: 9456681 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 CF9E360235 for ; Thu, 1 Dec 2016 18:34:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C672C284D9 for ; Thu, 1 Dec 2016 18:34:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAE3528522; Thu, 1 Dec 2016 18:34:43 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEFBD284D9 for ; Thu, 1 Dec 2016 18:34:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757838AbcLASem (ORCPT ); Thu, 1 Dec 2016 13:34:42 -0500 Received: from mail-vk0-f65.google.com ([209.85.213.65]:34030 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757299AbcLASel (ORCPT ); Thu, 1 Dec 2016 13:34:41 -0500 Received: by mail-vk0-f65.google.com with SMTP id p9so11302349vkd.1 for ; Thu, 01 Dec 2016 10:34:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Em9Y13fP6GJno2X1vQ80hyYehPFaUV2M9WKJynPICzI=; b=pF6nKiXobcW4nU5TK5CGTjEie1/nUHeWcFsOkIkuF+b54R9eLGBYm1Abt4tWqpW8qH CHQu68DmO3oTtGVwrhgYQ3SnNtmhHrnHTOPcHsBg3FSr6Lhu+QedN/4kR+ymkvjzV1QJ dN8ouyuRtDK9aZI+siR+/1fKEnvUL05Xr6QuX+x5YD/k5yef2AyzwBRdrbHFGmLaC2Xg OyXMmSNXmopV5qF9YMwRGCyHkM3ZMP9TCbCZ24n3KIe5+OQtSiqE9wAGOLEGvjNkADMY 1xPj6etRiUQ10qDJefGlFSBsLdRZx5Y0qXFVPe5ZLsNEjeQDcdMfPt/8K79Ge1OHBwOT VVTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Em9Y13fP6GJno2X1vQ80hyYehPFaUV2M9WKJynPICzI=; b=gpwRtvoNzOIlt/Ijg3krMgoHXbmCY7PGp7KMN2+O+7uGNLKNB3d8jRjAo/euQZbKSn Y4i5QbrTzoKS+DCed0pJRykTCkLQZ32eFKUVSP0wFIZru/SvijzJoPKgPmD8jUYX8Imq y/tgNDqlrVfpGygeNuNly+CWg4QAjaN34CFlAt0nM1lhxH5dcE/C9GuNzwg+qgqVnn// YiUI1WW6sFd5xU7veiqkli7rPIyvpsvq/lb+MfFNOjarKIanTs0Fi9DfEjW7xY+T88xH u0g5J9p5zdJ4tJoaUeRgxOJsLY4kC6Cco0qvvREDU6ftb3+idl9zfSOz13vivG0MBG77 eLvA== X-Gm-Message-State: AKaTC02RWz1zNMcmiyJmFgTyvAu9/TwGV/QfnDcUAf8AypBo7bIzm3P5g+CgWtdrbk7Q7FBAaQv4QAtID/CALw== X-Received: by 10.31.194.205 with SMTP id s196mr14654302vkf.101.1480617279704; Thu, 01 Dec 2016 10:34:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.69.134 with HTTP; Thu, 1 Dec 2016 10:34:39 -0800 (PST) From: SRIKANT RITOLIA Date: Fri, 2 Dec 2016 00:04:39 +0530 Message-ID: Subject: [PATCH] staging: sm750fb: Aligning Block comments To: Greg Kroah-Hartman , Sudip Mukherjee , Teddy Wang , Sudip Mukherjee , linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix checkpatch.pl warnings:- Block comments should align the * on each line Signed-off-by: Srikant Ritolia --- drivers/staging/sm750fb/ddk750.h | 20 ++++++++++---------- drivers/staging/sm750fb/ddk750_chip.c | 14 +++++++------- drivers/staging/sm750fb/ddk750_chip.h | 10 +++++----- drivers/staging/sm750fb/ddk750_mode.c | 12 ++++++------ drivers/staging/sm750fb/ddk750_swi2c.c | 22 +++++++++++----------- drivers/staging/sm750fb/ddk750_swi2c.h | 22 +++++++++++----------- 6 files changed, 50 insertions(+), 50 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750.h b/drivers/staging/sm750fb/ddk750.h index 2c10a08ed964..7ee371443e28 100644 --- a/drivers/staging/sm750fb/ddk750.h +++ b/drivers/staging/sm750fb/ddk750.h @@ -1,16 +1,16 @@ #ifndef DDK750_H__ #define DDK750_H__ /******************************************************************* -* -* Copyright (c) 2007 by Silicon Motion, Inc. (SMI) -* -* All rights are reserved. Reproduction or in part is prohibited -* without the written consent of the copyright owner. -* -* RegSC.h --- SM718 SDK -* This file contains the definitions for the System Configuration registers. -* -*******************************************************************/ + * + * Copyright (c) 2007 by Silicon Motion, Inc. (SMI) + * + * All rights are reserved. Reproduction or in part is prohibited + * without the written consent of the copyright owner. + * + * RegSC.h --- SM718 SDK + * This file contains the definitions for the System Configuration registers. + * + *******************************************************************/ #include "ddk750_reg.h" #include "ddk750_mode.h" #include "ddk750_chip.h" diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index 839d6730bde9..b7697ac206cf 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -63,17 +63,17 @@ static void setChipClock(unsigned int frequency) if (frequency) { /* - * Set up PLL, a structure to hold the value to be set in clocks. - */ + * Set up PLL, a structure to hold the value to be set in clocks. + */ pll.inputFreq = DEFAULT_INPUT_CLOCK; /* Defined in CLOCK.H */ pll.clockType = MXCLK_PLL; /* - * Call calcPllValue() to fill the other fields of PLL structure. - * Sometime, the chip cannot set up the exact clock - * required by the User. - * Return value of calcPllValue gives the actual possible clock. - */ + * Call calcPllValue() to fill the other fields of PLL structure. + * Sometime, the chip cannot set up the exact clock + * required by the User. + * Return value of calcPllValue gives the actual possible clock. + */ ulActualMxClk = calcPllValue(frequency, &pll); /* Master Clock Control: MXCLK_PLL */ diff --git a/drivers/staging/sm750fb/ddk750_chip.h b/drivers/staging/sm750fb/ddk750_chip.h index 14357fd1cc6b..20031f4e03fa 100644 --- a/drivers/staging/sm750fb/ddk750_chip.h +++ b/drivers/staging/sm750fb/ddk750_chip.h @@ -40,27 +40,27 @@ pll_value_t; /* input struct to initChipParam() function */ typedef struct _initchip_param_t { unsigned short powerMode; /* Use power mode 0 or 1 */ - unsigned short chipClock; /** + unsigned short chipClock; /* * Speed of main chip clock in MHz unit * 0 = keep the current clock setting * Others = the new main chip clock */ - unsigned short memClock; /** + unsigned short memClock; /* * Speed of memory clock in MHz unit * 0 = keep the current clock setting * Others = the new memory clock */ - unsigned short masterClock; /** + unsigned short masterClock; /* * Speed of master clock in MHz unit * 0 = keep the current clock setting * Others = the new master clock */ - unsigned short setAllEngOff; /** + unsigned short setAllEngOff; /* * 0 = leave all engine state untouched. * 1 = make sure they are off: 2D, Overlay, * video alpha, alpha, hardware cursors */ - unsigned char resetMemory; /** + unsigned char resetMemory; /* * 0 = Do not reset the memory controller * 1 = Reset the memory controller */ diff --git a/drivers/staging/sm750fb/ddk750_mode.c b/drivers/staging/sm750fb/ddk750_mode.c index 05b83646c2d5..4c0012b81c7f 100644 --- a/drivers/staging/sm750fb/ddk750_mode.c +++ b/drivers/staging/sm750fb/ddk750_mode.c @@ -177,12 +177,12 @@ static int programModeRegisters(mode_parameter_t *pModeParam, pll_value_t *pll) DISPLAY_CTRL_PLANE); /* May a hardware bug or just my test chip (not confirmed). - * PANEL_DISPLAY_CTRL register seems requiring few writes - * before a value can be successfully written in. - * Added some masks to mask out the reserved bits. - * Note: This problem happens by design. The hardware will wait for the - * next vertical sync to turn on/off the plane. - */ + * PANEL_DISPLAY_CTRL register seems requiring few writes + * before a value can be successfully written in. + * Added some masks to mask out the reserved bits. + * Note: This problem happens by design. The hardware will wait for the + * next vertical sync to turn on/off the plane. + */ POKE32(PANEL_DISPLAY_CTRL, tmp | reg); diff --git a/drivers/staging/sm750fb/ddk750_swi2c.c b/drivers/staging/sm750fb/ddk750_swi2c.c index 72a42330e7a1..c0686050c0bc 100644 --- a/drivers/staging/sm750fb/ddk750_swi2c.c +++ b/drivers/staging/sm750fb/ddk750_swi2c.c @@ -1,15 +1,15 @@ /******************************************************************* -* -* Copyright (c) 2007 by Silicon Motion, Inc. (SMI) -* -* All rights are reserved. Reproduction or in part is prohibited -* without the written consent of the copyright owner. -* -* swi2c.c --- SM750/SM718 DDK -* This file contains the source code for I2C using software -* implementation. -* -*******************************************************************/ + * + * Copyright (c) 2007 by Silicon Motion, Inc. (SMI) + * + * All rights are reserved. Reproduction or in part is prohibited + * without the written consent of the copyright owner. + * + * swi2c.c --- SM750/SM718 DDK + * This file contains the source code for I2C using software + * implementation. + * + *******************************************************************/ #include "ddk750_help.h" #include "ddk750_reg.h" #include "ddk750_swi2c.h" diff --git a/drivers/staging/sm750fb/ddk750_swi2c.h b/drivers/staging/sm750fb/ddk750_swi2c.h index b53629cda095..9dd4107ace54 100644 --- a/drivers/staging/sm750fb/ddk750_swi2c.h +++ b/drivers/staging/sm750fb/ddk750_swi2c.h @@ -1,15 +1,15 @@ /******************************************************************* -* -* Copyright (c) 2007 by Silicon Motion, Inc. (SMI) -* -* All rights are reserved. Reproduction or in part is prohibited -* without the written consent of the copyright owner. -* -* swi2c.h --- SM750/SM718 DDK -* This file contains the definitions for i2c using software -* implementation. -* -*******************************************************************/ + * + * Copyright (c) 2007 by Silicon Motion, Inc. (SMI) + * + * All rights are reserved. Reproduction or in part is prohibited + * without the written consent of the copyright owner. + * + * swi2c.h --- SM750/SM718 DDK + * This file contains the definitions for i2c using software + * implementation. + * + *******************************************************************/ #ifndef _SWI2C_H_ #define _SWI2C_H_