Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753936AbdHUOEW (ORCPT ); Mon, 21 Aug 2017 10:04:22 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:37575 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753909AbdHUOEU (ORCPT ); Mon, 21 Aug 2017 10:04:20 -0400 From: Himanshu Jha To: b.zolnierkie@samsung.com Cc: linux-kernel@vger.kernel.org, Himanshu Jha Subject: [PATCH] drivers: video: Fix 80 character limit and remove unnecessary space Date: Mon, 21 Aug 2017 19:33:51 +0530 Message-Id: <1503324231-10675-1-git-send-email-himanshujha199640@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1365 Lines: 48 Fixes the following checkpatch warnings: WARNING: line over 80 characters WARNING: space prohibited between function name and open parenthesis '(' WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable Signed-off-by: Himanshu Jha --- drivers/video/vgastate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/vgastate.c b/drivers/video/vgastate.c index 548c751..a52283d 100644 --- a/drivers/video/vgastate.c +++ b/drivers/video/vgastate.c @@ -31,8 +31,9 @@ struct regstate { __u8 misc; }; -static inline unsigned char vga_rcrtcs(void __iomem *regbase, unsigned short iobase, - unsigned char reg) +static inline unsigned char vga_rcrtcs(void __iomem *regbase, + unsigned short iobase, + unsigned char reg) { vga_w(regbase, iobase + 0x4, reg); return vga_r(regbase, iobase + 0x5); @@ -454,8 +455,9 @@ int save_vga(struct vgastate *state) } return 0; } +EXPORT_SYMBOL(save_vga); -int restore_vga (struct vgastate *state) +int restore_vga(struct vgastate *state) { if (state->vidstate == NULL) return 1; @@ -480,8 +482,6 @@ int restore_vga (struct vgastate *state) vga_cleanup(state); return 0; } - -EXPORT_SYMBOL(save_vga); EXPORT_SYMBOL(restore_vga); MODULE_AUTHOR("James Simmons "); -- 2.7.4