From patchwork Tue Jul 7 08:14:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6731021 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8ABDA9F319 for ; Tue, 7 Jul 2015 08:19:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B04952072E for ; Tue, 7 Jul 2015 08:19:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD82920721 for ; Tue, 7 Jul 2015 08:19:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756545AbbGGIPq (ORCPT ); Tue, 7 Jul 2015 04:15:46 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:36709 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756407AbbGGIPG (ORCPT ); Tue, 7 Jul 2015 04:15:06 -0400 Received: by pddu5 with SMTP id u5so34084165pdd.3; Tue, 07 Jul 2015 01:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=stQZyElo8fmLWwnKqa3+nY2o/ZQlBZKfQUuDA19sCl8=; b=UyzLeCbOOHRru9Bvy5Uogzk7r3Z7pYaloMNu/gve9M7+xQMz0Mop29H/+jXIlwy8di coZDGyBUTt2gavwik9oAVcfahgRO+QdVZYhAFcgqx6AOejeONvNo2CFcCoZd/1ExRfPd LkQse8hoDPYCneONC/l+QEQeq5Dys2Yh41VSfZ2d4iipGK9aBxq5DIQADtnRiBhUW2z1 VksJBfZpGI7m6DXc6twZF5wJ2L8kuUizzDvAcAafNt8UsRTj9JBtSqYQ5VdAviT5u5Ey 3vGCx23Dla0SxKOnLEuUTwPjmMMlfhNp8wgVr9FV3JfMxCjxQ0bZTe0/E1X+dhcLCO3u gZEg== X-Received: by 10.68.99.197 with SMTP id es5mr6359688pbb.131.1436256905754; Tue, 07 Jul 2015 01:15:05 -0700 (PDT) Received: from localhost.localdomain ([49.206.254.91]) by mx.google.com with ESMTPSA id wm8sm20823418pbc.19.2015.07.07.01.15.03 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jul 2015 01:15:05 -0700 (PDT) From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, Dan Carpenter , Sudip Mukherjee Subject: [PATCH 5/5] staging: sm7xxfb: usr fb_read and fb_write Date: Tue, 7 Jul 2015 13:44:37 +0530 Message-Id: <1436256877-10754-6-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1436256877-10754-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1436256877-10754-1-git-send-email-sudipm.mukherjee@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now since the Big-Endian and Little-Endian based calculations are moved into a macro we can make fb_read() and fb_write() common for both Little-Endian and Big-Endian. Signed-off-by: Sudip Mukherjee --- drivers/staging/sm7xxfb/sm7xxfb.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 252f110a..b8a1e86 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -946,7 +946,6 @@ static int smtc_setcolreg(unsigned regno, unsigned red, unsigned green, return 0; } -#ifdef __BIG_ENDIAN static ssize_t smtcfb_read(struct fb_info *info, char __user *buf, size_t count, loff_t *ppos) { @@ -1107,7 +1106,6 @@ static ssize_t smtcfb_write(struct fb_info *info, const char __user *buf, return (cnt) ? cnt : err; } -#endif /* ! __BIG_ENDIAN */ static void sm7xx_set_timing(struct smtcfb_info *sfb) { @@ -1303,10 +1301,8 @@ static struct fb_ops smtcfb_ops = { .fb_fillrect = cfb_fillrect, .fb_imageblit = cfb_imageblit, .fb_copyarea = cfb_copyarea, -#ifdef __BIG_ENDIAN .fb_read = smtcfb_read, .fb_write = smtcfb_write, -#endif }; /*