From patchwork Thu Jun 27 12:12:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Schneider X-Patchwork-Id: 11019919 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A6E161398 for ; Thu, 27 Jun 2019 15:33:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9783E1FF0B for ; Thu, 27 Jun 2019 15:33:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AEE1201BD; Thu, 27 Jun 2019 15:33:45 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA9C01FF0B for ; Thu, 27 Jun 2019 15:33:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F1F706E55E; Thu, 27 Jun 2019 15:33:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 362 seconds by postgrey-1.36 at gabe; Thu, 27 Jun 2019 12:19:20 UTC Received: from faui03.informatik.uni-erlangen.de (faui03.informatik.uni-erlangen.de [131.188.30.103]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5CB53897B4 for ; Thu, 27 Jun 2019 12:19:20 +0000 (UTC) Received: from faui01a.informatik.uni-erlangen.de (faui01a.informatik.uni-erlangen.de [131.188.60.127]) by faui03.informatik.uni-erlangen.de (Postfix) with ESMTP id 1D51F241569; Thu, 27 Jun 2019 14:12:51 +0200 (CEST) Received: by faui01a.informatik.uni-erlangen.de (Postfix, from userid 30063) id 080D0F40079; Thu, 27 Jun 2019 14:12:50 +0200 (CEST) From: Lukas Schneider To: leobras.c@gmail.com, digholebhagyashri@gmail.com, bhanusreemahesh@gmail.com, daniel.vetter@ffwll.ch, der_wolf_@web.de, payal.s.kshirsagar.98@gmail.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbtft: Cleanup line over 80 character warnings Date: Thu, 27 Jun 2019 14:12:40 +0200 Message-Id: <20190627121240.31584-1-lukas.s.schneider@fau.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 27 Jun 2019 15:33:25 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jannik Moritz , linux-kernel@i4.cs.fau.de, Lukas Schneider Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Cleanup the line over 80 character warnings, reported by checkpatch Signed-off-by: Lukas Schneider Signed-off-by: Jannik Moritz Cc: --- drivers/staging/fbtft/fbtft-sysfs.c | 3 ++- drivers/staging/fbtft/fbtft.h | 26 ++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-sysfs.c b/drivers/staging/fbtft/fbtft-sysfs.c index 2a5c630dab87..78d2b81ea2e7 100644 --- a/drivers/staging/fbtft/fbtft-sysfs.c +++ b/drivers/staging/fbtft/fbtft-sysfs.c @@ -68,7 +68,8 @@ int fbtft_gamma_parse_str(struct fbtft_par *par, u32 *curves, ret = get_next_ulong(&curve_p, &val, " ", 16); if (ret) goto out; - curves[curve_counter * par->gamma.num_values + value_counter] = val; + curves[curve_counter * par->gamma.num_values + + value_counter] = val; value_counter++; } if (value_counter != par->gamma.num_values) { diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h index 9b6bdb62093d..cddbfd4ffa10 100644 --- a/drivers/staging/fbtft/fbtft.h +++ b/drivers/staging/fbtft/fbtft.h @@ -348,9 +348,25 @@ module_exit(fbtft_driver_module_exit); /* shorthand debug levels */ #define DEBUG_LEVEL_1 DEBUG_REQUEST_GPIOS -#define DEBUG_LEVEL_2 (DEBUG_LEVEL_1 | DEBUG_DRIVER_INIT_FUNCTIONS | DEBUG_TIME_FIRST_UPDATE) -#define DEBUG_LEVEL_3 (DEBUG_LEVEL_2 | DEBUG_RESET | DEBUG_INIT_DISPLAY | DEBUG_BLANK | DEBUG_REQUEST_GPIOS | DEBUG_FREE_GPIOS | DEBUG_VERIFY_GPIOS | DEBUG_BACKLIGHT | DEBUG_SYSFS) -#define DEBUG_LEVEL_4 (DEBUG_LEVEL_2 | DEBUG_FB_READ | DEBUG_FB_WRITE | DEBUG_FB_FILLRECT | DEBUG_FB_COPYAREA | DEBUG_FB_IMAGEBLIT | DEBUG_FB_BLANK) +#define DEBUG_LEVEL_2 (DEBUG_LEVEL_1 | \ + DEBUG_DRIVER_INIT_FUNCTIONS | \ + DEBUG_TIME_FIRST_UPDATE) +#define DEBUG_LEVEL_3 (DEBUG_LEVEL_2 | \ + DEBUG_RESET | \ + DEBUG_INIT_DISPLAY | \ + DEBUG_BLANK | \ + DEBUG_REQUEST_GPIOS | \ + DEBUG_FREE_GPIOS | \ + DEBUG_VERIFY_GPIOS | \ + DEBUG_BACKLIGHT | \ + DEBUG_SYSFS) +#define DEBUG_LEVEL_4 (DEBUG_LEVEL_2 | \ + DEBUG_FB_READ | \ + DEBUG_FB_WRITE | \ + DEBUG_FB_FILLRECT | \ + DEBUG_FB_COPYAREA | \ + DEBUG_FB_IMAGEBLIT | \ + DEBUG_FB_BLANK) #define DEBUG_LEVEL_5 (DEBUG_LEVEL_3 | DEBUG_UPDATE_DISPLAY) #define DEBUG_LEVEL_6 (DEBUG_LEVEL_4 | DEBUG_LEVEL_5) #define DEBUG_LEVEL_7 0xFFFFFFFF @@ -392,7 +408,9 @@ module_exit(fbtft_driver_module_exit); #define fbtft_init_dbg(dev, format, arg...) \ do { \ if (unlikely((dev)->platform_data && \ - (((struct fbtft_platform_data *)(dev)->platform_data)->display.debug & DEBUG_DRIVER_INIT_FUNCTIONS))) \ + (((struct fbtft_platform_data *) \ + (dev)->platform_data)->display.debug \ + & DEBUG_DRIVER_INIT_FUNCTIONS))) \ dev_info(dev, format, ##arg); \ } while (0)