From patchwork Wed Jul 15 08:29:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6794531 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 14EF7C05AC for ; Wed, 15 Jul 2015 08:31:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31F1F205DE for ; Wed, 15 Jul 2015 08:30:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4637E20592 for ; Wed, 15 Jul 2015 08:30:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752387AbbGOIaZ (ORCPT ); Wed, 15 Jul 2015 04:30:25 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:35958 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752261AbbGOIaA (ORCPT ); Wed, 15 Jul 2015 04:30:00 -0400 Received: by pdjr16 with SMTP id r16so21164487pdj.3; Wed, 15 Jul 2015 01:29:58 -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=gHqzL7fnJULguZTm7QXGO88DHJP+mrbPEZuaA4GNGTQ=; b=Yfy+ErhpryN+L+ujfbT4JCBMTvQ3WIpTglfc+7OPu8fxy31JilM1zZzttT4TxpyDBt bsL/i0YoVotQXS9xj2afvwVrGFlbUKtX0zansGj09SjeMeEp1/WCNJ1Rf66V3U5d7yih blmTvjZFmvj6DrKqTQLmrq/KWXg93kRIlGgZseXGGWhYT6v//V3ey5dBS6kOB2LiCjp9 kP8/JeKfzU8s52P1uNFSv47Z9nBXr0iTCMCjLU1jwCh/9b82kFwq0W1H+u1BzuilWSqJ L4InLs/6l3iHANqRkaZULqU6A/G/8dresD8y8xgjzCZIP2pRwLFaVbSslTvm2pArlF1c bwew== X-Received: by 10.66.229.65 with SMTP id so1mr5829380pac.92.1436948998608; Wed, 15 Jul 2015 01:29:58 -0700 (PDT) Received: from localhost.localdomain ([49.206.246.192]) by smtp.gmail.com with ESMTPSA id to5sm3780058pac.33.2015.07.15.01.29.56 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jul 2015 01:29:58 -0700 (PDT) From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, Sudip Mukherjee Subject: [PATCH v2 2/2] staging: sm7xxfb: usr fb_read and fb_write Date: Wed, 15 Jul 2015 13:59:46 +0530 Message-Id: <1436948986-29664-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1436948986-29664-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1436948986-29664-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=-8.2 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 106465c..07c2199 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 }; /*