From patchwork Sun Jul 2 23:14:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lynn Lei X-Patchwork-Id: 9821831 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 8D08860224 for ; Sun, 2 Jul 2017 23:15:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6474226E69 for ; Sun, 2 Jul 2017 23:15:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4406827861; Sun, 2 Jul 2017 23:15:05 +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 0D7AA26E69 for ; Sun, 2 Jul 2017 23:15:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751996AbdGBXPC (ORCPT ); Sun, 2 Jul 2017 19:15:02 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35311 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751978AbdGBXPB (ORCPT ); Sun, 2 Jul 2017 19:15:01 -0400 Received: by mail-pf0-f193.google.com with SMTP id s66so23664560pfs.2; Sun, 02 Jul 2017 16:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=YtgtvRtIWFIJ5I9p3dW/IQsYNrbP9+Q6m+LIsL/oKrE=; b=e29eYsj/zYamMJS4LCFs/4lIH9K00vqV0NYCJwq+w+MWl1YGW4GbhcLIST+SmdjIIz PJG5gQ3HfsNwlhK+xOiH4lp7QILjGOWrrOq3KQ2SVkXabW44Ufm+RfKsGyiAlmY7r7nk 1iblu2mPCGFJBeBVuXtex61H9RKRKv/JHXeCaBc0a8du9ThAsuL28SM2zxDR3MUhC/oa sugV1lY7hnyxTfBh6n4NhfkMY/nitCKDgTKpM8rqcDgvjp0fv/uLFr105id0NLl8oaAM Fi/MwGutEj4JnNKFu1a3gmeFm4Ap7qTKYraIaCs8Cgb+oOQpJWYzrTKzKzXzK3P0QKX3 x8lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=YtgtvRtIWFIJ5I9p3dW/IQsYNrbP9+Q6m+LIsL/oKrE=; b=UUy4CQrZiCRUd6J3kXIjVHonSqOsjL69bv68qYP8fEJ2LeCskmBHZJ9UswxMb9L4lP DwvVgtiJVLkNo89a99MPNrlONOE52xi3KbLcXUDDu8vmwiQxMZIaqHR6K3e1fyBXw8LA izJL1gjjIIkadQJlNBkDcJvx/bATkkvy0j5IW91coctyfL2R4lSA921I/h6T1fiQdXPp i8OMFwkMzon7GHUuCvc52npQdvT7pzWoOyRcNmp8T29xG+fEZK6GSf8BuqneAzpnhLMy hHKCg9U6bPh07EKDlON68OAxy8OM1cWDbComP/bwUk+j6wc1LLKKK9KfucRV/ta/tm0l l5iA== X-Gm-Message-State: AIVw111Xbj//p9rm+2lzC0FJUArySVIK0iR5BoR0uRC8WLO+pJ9otILr x8PIbkaXB6oyqQ== X-Received: by 10.84.218.71 with SMTP id f7mr7410033plm.282.1499037300874; Sun, 02 Jul 2017 16:15:00 -0700 (PDT) Received: from lynnl.wit ([112.64.217.90]) by smtp.gmail.com with ESMTPSA id y66sm29816358pfa.54.2017.07.02.16.14.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Jul 2017 16:14:59 -0700 (PDT) Date: Mon, 3 Jul 2017 07:14:54 +0800 From: Lynn Lei To: sudipm.mukherjee@gmail.com Cc: teddy.wang@siliconmotion.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: sm750fb: coordinate conditional compilation Message-ID: <20170702231454.GA5545@lynnl.wit> MIME-Version: 1.0 Content-Disposition: inline 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 coordinate conditional compilation with g_dcftSupportedDviController[] fix exceed-80-characters issue Signed-off-by: Lynn Lei --- drivers/staging/sm750fb/ddk750_dvi.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_dvi.c b/drivers/staging/sm750fb/ddk750_dvi.c index 171ae063f06f..c4f329c2f1ed 100644 --- a/drivers/staging/sm750fb/ddk750_dvi.c +++ b/drivers/staging/sm750fb/ddk750_dvi.c @@ -42,14 +42,19 @@ int dviInit( unsigned char pllFilterValue ) { +#ifdef DVI_CTRL_SII164 dvi_ctrl_device_t *pCurrentDviCtrl; pCurrentDviCtrl = g_dcftSupportedDviController; - if (pCurrentDviCtrl->pfnInit) { - return pCurrentDviCtrl->pfnInit(edgeSelect, busSelect, dualEdgeClkSelect, hsyncEnable, - vsyncEnable, deskewEnable, deskewSetting, continuousSyncEnable, - pllFilterEnable, pllFilterValue); - } + + return pCurrentDviCtrl->pfnInit( + edgeSelect, busSelect, dualEdgeClkSelect, + hsyncEnable, vsyncEnable, deskewEnable, + deskewSetting, continuousSyncEnable, + pllFilterEnable, pllFilterValue + ); +#endif + return -1; /* error */ }