From patchwork Wed Mar 14 15:35:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10282497 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 D12F6602BD for ; Wed, 14 Mar 2018 15:43:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C188227F95 for ; Wed, 14 Mar 2018 15:43:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5D2027F9F; Wed, 14 Mar 2018 15:43:22 +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=-4.2 required=2.0 tests=BAYES_00, 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 A852C27F95 for ; Wed, 14 Mar 2018 15:43:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7041A6E729; Wed, 14 Mar 2018 15:43:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by gabe.freedesktop.org (Postfix) with ESMTPS id DDBB16E729 for ; Wed, 14 Mar 2018 15:43:18 +0000 (UTC) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lsc93-1eTNKw3mTx-012ED4; Wed, 14 Mar 2018 16:43:12 +0100 From: Arnd Bergmann To: linux-kernel@vger.kernel.org Subject: [PATCH 18/47] fbdev: s1d13xxxfb: remove m32r specific hacks Date: Wed, 14 Mar 2018 16:35:31 +0100 Message-Id: <20180314153603.3127932-19-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180314153603.3127932-1-arnd@arndb.de> References: <20180314153603.3127932-1-arnd@arndb.de> X-Provags-ID: V03:K0:pnCQlRTK4nB2L1CvvzU1b6hzXQZnghdtwfchkoLYZkruC2iiJ24 c/OOcArLdpXMEJTdqIWVEzp2dYzsa+gkK4EmCEPcmoBfFHcDoeZF9dQodxt9Dy3ml+1EcWN x6LsDCOHpQwvPbDke6DtCTNN8uqpHNwtobtIMNTTbqogpcvllXY6aOU6xVwopXoy3/DmX9n RapiKhUAQBdyqa4UKOW8w== X-UI-Out-Filterresults: notjunk:1; V01:K0:346y4PUNzGE=:V/ih5/f+nm7y8gTrZrDo0x 9t9EW75mL3wICqXlleofEf5v0zehVMkZjRySPd21jm0QZEBJTJtlVOZqbN8fZogyAp14P+bDa b0mgQl1IYxa8fQLTdP+3IbdrJUn90Sk1rsKIbsT8NMMpwkKIPBHFuOa9pHRta16EJUPK3qcwz 5CR3uUcX9+i3BK7j+V7Zlv7TEm1ufq+WbHbCgXtAqgelkDjfal44rjYpulugSXZy7H5wDD/ho Olwag1v/9ycdN+LG4MDzL/bXYBAuxNqjevYOurqjF4JEG+Avk3tFfy2iWEiGFZVAZikVmqw6E R0NV9rBM1vB6AcXXNdMNsQsvAYTMYKXcPKG2C8MHd6IkrUXAuuqjcWmSpmsyfqVOxd5UUhNdO S4H/iJxIpEWZFKqWbWFX1o/f+MDsutXzSoAuGVDI260qU3jzHs8oM7qE5joHe7QShF9kwFgvL Jnd5msVWc5wBTbUJ4vZqJqwYlxwB6AVBpVow3h0+dU3Yhg454SDWxkpLBeJRsc1BOo6SWdxpB BNx2Hm8T9HLsGu6V0Zv1Xni/xdDsvbutvC29b2Zq2c3IjHD9Ilp9ienfksgchu0Scbr29mAMn hZ0w8cxnsvijp0LdA29cTRU7lC07oHcAp1TS0lURTCnf8t2DId1WM57Yp4v9sO7BH11PO55te xKENmadZp0tRJSCYN8lTSLzYwyr0HJWLd4vh2/R+ZlnIVNFZmXYYCwWxmZ85kWMa6vHdhjx1Q uArLJGbnrh2aKbIu/ZyBAxMyK5Ge2wWr2ChtAw== 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: linux-fbdev@vger.kernel.org, Kristoffer Ericson , dri-devel@lists.freedesktop.org, Arnd Bergmann , Bartlomiej Zolnierkiewicz MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The m32r architecture is being removed, so this is no longer needed. Signed-off-by: Arnd Bergmann Acked-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/s1d13xxxfb.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/video/fbdev/s1d13xxxfb.c b/drivers/video/fbdev/s1d13xxxfb.c index 5d6179ef0298..e04efb567b5c 100644 --- a/drivers/video/fbdev/s1d13xxxfb.c +++ b/drivers/video/fbdev/s1d13xxxfb.c @@ -96,18 +96,12 @@ static const struct fb_fix_screeninfo s1d13xxxfb_fix = { static inline u8 s1d13xxxfb_readreg(struct s1d13xxxfb_par *par, u16 regno) { -#if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_OPSPUT) || defined(CONFIG_PLAT_MAPPI3) - regno=((regno & 1) ? (regno & ~1L) : (regno + 1)); -#endif return readb(par->regs + regno); } static inline void s1d13xxxfb_writereg(struct s1d13xxxfb_par *par, u16 regno, u8 value) { -#if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_OPSPUT) || defined(CONFIG_PLAT_MAPPI3) - regno=((regno & 1) ? (regno & ~1L) : (regno + 1)); -#endif writeb(value, par->regs + regno); } @@ -296,11 +290,7 @@ s1d13xxxfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, dbg("s1d13xxxfb_setcolreg: pseudo %d, val %08x\n", regno, pseudo_val); -#if defined(CONFIG_PLAT_MAPPI) - ((u32 *)info->pseudo_palette)[regno] = cpu_to_le16(pseudo_val); -#else ((u32 *)info->pseudo_palette)[regno] = pseudo_val; -#endif break; case FB_VISUAL_PSEUDOCOLOR: