From patchwork Sat Sep 1 14:08:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 10584783 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 28FF413AC for ; Sat, 1 Sep 2018 14:09:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28C4F2A20B for ; Sat, 1 Sep 2018 14:09:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B0B22A218; Sat, 1 Sep 2018 14:09:07 +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=-2.1 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C8FEB2A20B for ; Sat, 1 Sep 2018 14:09:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:MIME-Version:Subject:From:References :In-Reply-To:Message-Id:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XkiL9ClDUfsZwbmRSyh5CZR2i5XdwJol5KzV2NS5vT8=; b=b8h63/j8CXiKnR 3suy+QP54IFvGte/NL5FGr4xMp2mIvcQUKiROIVUxH6eDplFre1kHN+FijFG4+rtIw0SYmgSz8vs0 LG5SLC0s4xB/ds9c89Q8npyyzSeISGxbxIxpJxxI5lGVb6rNMiE4JEq4lVDPP5QiLGjxv1qn3RI3W /aEbsbs7G6G7csY89Qu4yT+CEPlsvXzB7MZ7q40Argoraz8218PGpASwJG8NcLD73bS/3JNS+7X2J W7W6D0qFkv8kz5Cg9knCFrLIjQpZiHhmfZ0bDO0mwsG2Y9FTGst+rcr+WXRgId06DA9G02z8VJ/NA ZKf/PmQh08DLziwKDYvA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fw6aD-0000gz-Ev; Sat, 01 Sep 2018 14:09:01 +0000 Received: from rere.qmqm.pl ([91.227.64.183]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fw6a7-0000es-Tc for linux-arm-kernel@lists.infradead.org; Sat, 01 Sep 2018 14:08:57 +0000 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 422dNl22dHzbk; Sat, 1 Sep 2018 16:08:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1535810887; bh=Z5WHrdyLJFPdU/lgtm0NLTvJjpJ2i8D9onnzHsme35k=; h=Date:In-Reply-To:References:From:Subject:To:Cc:Cc:From; b=qhDKAEumYbZR2k2tGzVrl2P1EMKNtPLoxbuADZ96DHyk6DI/LLyHfTsE5GaOS4T0D nzBLImXC7P9zz4V8/0NZ0Wmot/qzwfEOQC5pjbbJ0Md9/ohwwEINZGfGwwQO0BOpr4 ySG0CBL3MgXQjdtpiy4BvdF5mkYYdoqSfuZ7NNYIyfisVWI4mas1lG895zEl85qbLr h6UjW4g3Xf/I3FZSaYrEqz1ilD6GDm3ZA/qDKKwJhvjWpiBIHHdyszV3BGTiAQtsfS WkiQ1SAFSMEQe73RDoY1xXAtnhQBySiMulgi54HEtevqQkdHUeQROmrrBVqvw4JCv1 hACuFQyNN2kdA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.100.0 at mail Date: Sat, 01 Sep 2018 16:08:45 +0200 Message-Id: <283fef19815b991700b56119d8d5874a2a8da44e.1535810304.git.mirq-linux@rere.qmqm.pl> In-Reply-To: References: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v3 03/13] fbdev: add kerneldoc do remove_conflicting_framebuffers() MIME-Version: 1.0 To: dri-devel@lists.freedesktop.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180901_070856_143616_38027273 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, linux-tegra@vger.kernel.org, Bartlomiej Zolnierkiewicz , David Airlie , amd-gfx@lists.freedesktop.org, Jonathan Hunter , Eric Anholt , Thierry Reding , Gerd Hoffmann , Alex Deucher , Dave Airlie , Maxime Ripard , virtualization@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Document remove_conflicting_framebuffers() behaviour. Signed-off-by: Michał Mirosław Acked-by: Paul Menzel --- drivers/video/fbdev/core/fbmem.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c index 0df148eb4699..2de93b5014e3 100644 --- a/drivers/video/fbdev/core/fbmem.c +++ b/drivers/video/fbdev/core/fbmem.c @@ -1775,6 +1775,16 @@ int unlink_framebuffer(struct fb_info *fb_info) } EXPORT_SYMBOL(unlink_framebuffer); +/** + * remove_conflicting_framebuffers - remove firmware-configured framebuffers + * @a: memory range, users of which are to be removed + * @name: requesting driver name + * @primary: also kick vga16fb if present + * + * This function removes framebuffer devices (initialized by firmware/bootloader) + * which use memory range described by @a. If @a is NULL all such devices are + * removed. + */ int remove_conflicting_framebuffers(struct apertures_struct *a, const char *name, bool primary) {