From patchwork Mon Feb 22 01:55:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 8370211 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 767079F314 for ; Mon, 22 Feb 2016 01:56:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A10652035D for ; Mon, 22 Feb 2016 01:56:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B747520357 for ; Mon, 22 Feb 2016 01:56:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752875AbcBVBzU (ORCPT ); Sun, 21 Feb 2016 20:55:20 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:54110 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752383AbcBVBzS (ORCPT ); Sun, 21 Feb 2016 20:55:18 -0500 Received: (from localhost user: 'macro', uid#1010) by eddie.linux-mips.org with ESMTP id S27011662AbcBVBzRQNhgq (ORCPT + 1 other); Mon, 22 Feb 2016 02:55:17 +0100 Date: Mon, 22 Feb 2016 01:55:17 +0000 (GMT) From: "Maciej W. Rozycki" To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Geert Uytterhoeven cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] video: fbdev: bt455: Remove unneeded colormap helpers for cursor support In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,BODY_URI_ONLY, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Signed-off-by: Maciej W. Rozycki --- linux-bt455-cursor.diff -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-20160211-4maxp64/drivers/video/fbdev/bt455.h =================================================================== --- linux-20160211-4maxp64.orig/drivers/video/fbdev/bt455.h +++ linux-20160211-4maxp64/drivers/video/fbdev/bt455.h @@ -67,28 +67,3 @@ static inline void bt455_write_ovly_entr wmb(); regs->addr_ovly = blue & 0x0f; } - -static inline void bt455_set_cursor(struct bt455_regs *regs) -{ - mb(); - regs->addr_ovly = 0x0f; - wmb(); - regs->addr_ovly = 0x0f; - wmb(); - regs->addr_ovly = 0x0f; -} - -static inline void bt455_erase_cursor(struct bt455_regs *regs) -{ - /* bt455_write_cmap_entry(regs, 8, 0x00, 0x00, 0x00); */ - /* bt455_write_cmap_entry(regs, 9, 0x00, 0x00, 0x00); */ - bt455_write_ovly_entry(regs, 8, 0x03, 0x03, 0x03); - bt455_write_ovly_entry(regs, 9, 0x07, 0x07, 0x07); - - wmb(); - regs->addr_ovly = 0x09; - wmb(); - regs->addr_ovly = 0x09; - wmb(); - regs->addr_ovly = 0x09; -}