From patchwork Sat Nov 25 17:59:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Lacomis X-Patchwork-Id: 10074921 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 556FF60383 for ; Sat, 25 Nov 2017 18:00:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4187928C8E for ; Sat, 25 Nov 2017 18:00:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3668028E3C; Sat, 25 Nov 2017 18:00:10 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 6372128C8E for ; Sat, 25 Nov 2017 18:00:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751846AbdKYSAH (ORCPT ); Sat, 25 Nov 2017 13:00:07 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:37057 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751590AbdKYSAC (ORCPT ); Sat, 25 Nov 2017 13:00:02 -0500 Received: by mail-qk0-f196.google.com with SMTP id 136so27886244qkd.4; Sat, 25 Nov 2017 10:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=mei+gy4pwYRS1yA284fkqMzyjfAnzXHYH00UEM8Vjzw=; b=gXbosPc2S8S461daXLkpeT8j8yv1/48nka4wG5jcFYouMeDciC12Fcs2eRLgYYH+Lb 28FNc+LtFjZq+b8Duza97c90f6s8F5EVTb+lUmmPnagOTebUEcuFEtimQBg3/t8ydrVR suaZjHpXVeoaMh7Pfla/9a7w9vy1KkY0DKg/VyH3AZ/Wc8Yu6dr1iY434O1Xv3/EjOIp 1C3393jDDYnnXPpnkwFqVIU2TGBYybw1K/IRjcX6BuMI27hTVLoxUMd2FoaF/9sYYup6 wab2knfyvTXIt44lj5J4Xi4FTY/1PuI9Ay8GT1Iqx0IlwhuBkSMIyunASfWLwH+yV5kd 6GHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mei+gy4pwYRS1yA284fkqMzyjfAnzXHYH00UEM8Vjzw=; b=NPxlLMHeAtiKnYlNN7A3KyZjK8QHzovofqgBpC6nFE2KUQo/4Pq8ZOVWxYhlt8zTGP MRdlDxnY0yNm9dnnoLggAkqhLvrE8q14+1fmfOlxhVm+5N1/vFOK7OeZAzgd244snDEC rOwvjIslYwgIBD3myUMKARFCNmddR2+IEfeyp+84jitX/9oDO/6sjauKdXjlutiR7kmh hqa0KILv1T+0uSOqV1hkS0nOvt2N1aHQ9pk3Gsj+q/FGA9qF1ddGbZAa6KAvZYFz9lXs HyXGP1B8GL6NzeMAS06PgPWFbXUZ3rN6zFsfPOPxA7oBw6j4S/EBgR+Ny7/iUHAed9qk GpAg== X-Gm-Message-State: AJaThX5ykjRLJbBGcc/LsQ96fhKIhbncIhhsFO3z4HZyH2ikydR/UK78 Kaf2bVjbAImXK38oF100G24= X-Google-Smtp-Source: AGs4zMYGGuAq15jX9KF6qvZdCbN2f0w3yMRJQokf4uqqxBnUvAG/vYWkX0SaDJb/dXW/lXxcrl87SA== X-Received: by 10.55.149.196 with SMTP id x187mr13147937qkd.51.1511632802075; Sat, 25 Nov 2017 10:00:02 -0800 (PST) Received: from linux-dev (pool-74-109-216-254.pitbpa.fios.verizon.net. [74.109.216.254]) by smtp.gmail.com with ESMTPSA id x39sm8538710qtc.92.2017.11.25.10.00.01 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Nov 2017 10:00:01 -0800 (PST) From: Jeremy Lacomis To: sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com, gregkh@linuxfoundation.org Cc: linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Jeremy Lacomis Subject: [PATCH] Staging: sm750fb: Fix coding style issue in ddk750_sii164.c Date: Sat, 25 Nov 2017 12:59:37 -0500 Message-Id: <20171125175937.10428-1-j.lacomis@gmail.com> X-Mailer: git-send-email 2.11.0 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 This is a patch to the ddk750_sii164.c file that fixes line length warnings found by the checkpatch.pl script Signed-off-by: Jeremy Lacomis --- drivers/staging/sm750fb/ddk750_sii164.c | 39 +++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_sii164.c b/drivers/staging/sm750fb/ddk750_sii164.c index c787a74c4f9c..d081ecbb3e3d 100644 --- a/drivers/staging/sm750fb/ddk750_sii164.c +++ b/drivers/staging/sm750fb/ddk750_sii164.c @@ -39,8 +39,10 @@ unsigned short sii164GetVendorID(void) { unsigned short vendorID; - vendorID = ((unsigned short) i2cReadReg(SII164_I2C_ADDRESS, SII164_VENDOR_ID_HIGH) << 8) | - (unsigned short) i2cReadReg(SII164_I2C_ADDRESS, SII164_VENDOR_ID_LOW); + vendorID = ((unsigned short) i2cReadReg(SII164_I2C_ADDRESS, + SII164_VENDOR_ID_HIGH) << 8) | + (unsigned short) i2cReadReg(SII164_I2C_ADDRESS, + SII164_VENDOR_ID_LOW); return vendorID; } @@ -56,15 +58,20 @@ unsigned short sii164GetDeviceID(void) { unsigned short deviceID; - deviceID = ((unsigned short) i2cReadReg(SII164_I2C_ADDRESS, SII164_DEVICE_ID_HIGH) << 8) | - (unsigned short) i2cReadReg(SII164_I2C_ADDRESS, SII164_DEVICE_ID_LOW); + deviceID = ((unsigned short) i2cReadReg(SII164_I2C_ADDRESS, + SII164_DEVICE_ID_HIGH) << 8) | + (unsigned short) i2cReadReg(SII164_I2C_ADDRESS, + SII164_DEVICE_ID_LOW); return deviceID; } -/* DVI.C will handle all SiI164 chip stuffs and try it best to make code minimal and useful */ +/* + * DVI.C will handle all SiI164 chip stuffs and try it best to make code minimal + * and useful + */ /* * sii164InitChip @@ -72,10 +79,10 @@ unsigned short sii164GetDeviceID(void) * * Input: * edgeSelect - Edge Select: - * 0 = Input data is falling edge latched (falling edge - * latched first in dual edge mode) - * 1 = Input data is rising edge latched (rising edge - * latched first in dual edge mode) + * 0 = Input data is falling edge latched (falling + * edge latched first in dual edge mode) + * 1 = Input data is rising edge latched (rising + * edge latched first in dual edge mode) * busSelect - Input Bus Select: * 0 = Input data bus is 12-bits wide * 1 = Input data bus is 24-bits wide @@ -135,7 +142,8 @@ long sii164InitChip(unsigned char edgeSelect, #endif /* Check if SII164 Chip exists */ - if ((sii164GetVendorID() == SII164_VENDOR_ID) && (sii164GetDeviceID() == SII164_DEVICE_ID)) { + if ((sii164GetVendorID() == SII164_VENDOR_ID) && + (sii164GetDeviceID() == SII164_DEVICE_ID)) { /* * Initialize SII164 controller chip. */ @@ -260,8 +268,8 @@ void sii164ResetChip(void) /* * sii164GetChipString - * This function returns a char string name of the current DVI Controller chip. - * It's convenient for application need to display the chip name. + * This function returns a char string name of the current DVI Controller + * chip. It's convenient for application need to display the chip name. */ char *sii164GetChipString(void) { @@ -336,8 +344,9 @@ void sii164EnableHotPlugDetection(unsigned char enableHotPlug) detectReg = i2cReadReg(SII164_I2C_ADDRESS, SII164_DETECT); - /* Depending on each DVI controller, need to enable the hot plug based on each - * individual chip design. + /* + * Depending on each DVI controller, need to enable the hot plug based + * on each individual chip design. */ if (enableHotPlug != 0) sii164SelectHotPlugDetectionMode(SII164_HOTPLUG_USE_MDI); @@ -402,5 +411,3 @@ void sii164ClearInterrupt(void) #endif #endif - -