From patchwork Mon Feb 25 14:42:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Noralf_Tr=C3=B8nnes?= X-Patchwork-Id: 10828659 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6440B1575 for ; Mon, 25 Feb 2019 14:42:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 518AA2BA03 for ; Mon, 25 Feb 2019 14:42:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 432D22B9A0; Mon, 25 Feb 2019 14:42:58 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable 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 031B02BA03 for ; Mon, 25 Feb 2019 14:42:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 34E98897E0; Mon, 25 Feb 2019 14:42:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 188DD892C5; Mon, 25 Feb 2019 14:42:44 +0000 (UTC) Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:45266 helo=localhost.localdomain) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1gyHSs-0003wA-4c; Mon, 25 Feb 2019 15:42:42 +0100 From: =?utf-8?q?Noralf_Tr=C3=B8nnes?= To: dri-devel@lists.freedesktop.org Subject: [PATCH v3 0/7] drm/tinydrm: Remove tinydrm_device Date: Mon, 25 Feb 2019 15:42:25 +0100 Message-Id: <20190225144232.20761-1-noralf@tronnes.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org; s=ds201810; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From; bh=BeCB6lzgOi8FMQXcY26vs3asYfUcDbDjXvhnUjZLBz4=; b=BnDbS/31tbFZxIhSw26DBE2nVNdKNsqc31MeeI2ySkENUl3E44jdTzMeIra3rUMvmjeTNMkDCmtQX5da6jfO9DRbJKfsLYsywgEWRJZ2vFoof+xkWlpfyQACFxiYlRhHV/99UZmrbkzf0prUKMgYYnJl6uxpX81VWw984rvkK85tDZjmnSNZA3QGGDQMmzQknVJUwiGeh+dAM+04193b+Bs9EZY3rAqoQt+MQ7cuaZGs6c0w9bbBJN0Q/xHwjccmGMqv19LaEmBGpCFbNoQkHBHJnkc/lw+l9aHKVxo5dZZJUX3wSIWOjeg8lQeKXfHO5+Dg8kPmSPf1pEwcCPe0Ng==; 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: david@lechnology.com, daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org, sam@ravnborg.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patchset is part of the effort to remove tinydrm.ko. It removes struct tinydrm_device and tinydrm.h. Only one change in this version and that is expanding the driver example. The drm_dev_unplug() dependency series has been applied together with some patches from the previous version. I've cc'ed intel-gfx so the Intel CI can verify the parent device ref patch. Noralf. Noralf Trønnes (7): drm/drv: Hold ref on parent device during drm_device lifetime drm: Add devm_drm_dev_init() drm/drv: DOC: Add driver example code drm/tinydrm/repaper: Drop using tinydrm_device drm/tinydrm: Drop using tinydrm_device drm/tinydrm: Remove tinydrm_device drm/tinydrm: Use drm_dev_enter/exit() Documentation/driver-model/devres.txt | 3 + Documentation/gpu/tinydrm.rst | 32 +--- Documentation/gpu/todo.rst | 4 - drivers/gpu/drm/drm_drv.c | 176 +++++++++++++++++- drivers/gpu/drm/tinydrm/core/Makefile | 2 +- drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 169 ----------------- .../gpu/drm/tinydrm/core/tinydrm-helpers.c | 2 + drivers/gpu/drm/tinydrm/hx8357d.c | 49 ++++- drivers/gpu/drm/tinydrm/ili9225.c | 63 ++++++- drivers/gpu/drm/tinydrm/ili9341.c | 49 ++++- drivers/gpu/drm/tinydrm/mi0283qt.c | 49 ++++- drivers/gpu/drm/tinydrm/mipi-dbi.c | 109 ++++++++--- drivers/gpu/drm/tinydrm/repaper.c | 130 +++++++++---- drivers/gpu/drm/tinydrm/st7586.c | 129 ++++++++----- drivers/gpu/drm/tinydrm/st7735r.c | 49 ++++- include/drm/drm_drv.h | 3 + include/drm/tinydrm/mipi-dbi.h | 26 ++- include/drm/tinydrm/tinydrm.h | 42 ----- 18 files changed, 688 insertions(+), 398 deletions(-) delete mode 100644 drivers/gpu/drm/tinydrm/core/tinydrm-core.c delete mode 100644 include/drm/tinydrm/tinydrm.h