From patchwork Sun May 29 18:35:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9139925 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 F3F4C60759 for ; Sun, 29 May 2016 18:36:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E992D27CF9 for ; Sun, 29 May 2016 18:36:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE6A1281F9; Sun, 29 May 2016 18:36:31 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B81F527CF9 for ; Sun, 29 May 2016 18:36:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7495C6E5D5; Sun, 29 May 2016 18:35:53 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 181446E5A7 for ; Sun, 29 May 2016 18:35:51 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id q62so16089511wmg.3 for ; Sun, 29 May 2016 11:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nvbtgtCPyKvp+5pC82hbcq83FibMrxirNhUuwFClQPw=; b=CaSyK/eWZ6+yL+9NQpIuXiA/ifGpKgtikZ26webnoLZqGtiAupAfqiMXaxDYFUi3UD Ry+F9R5K2qeFIKejp0768sHFgIWgnobLP4k9qw16p0QmnDgqoQDJh/eKU0xaKDReKf6T SxSX2G1pt7OxBP4VoopvFV5Ficsd2Gnm3wAvE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nvbtgtCPyKvp+5pC82hbcq83FibMrxirNhUuwFClQPw=; b=QmgfNopRe3vzCtyWs5/egNGzDudetAr26pdUl/ZqUeltgmBIaiaCrA6fZWOTXJRMpR L+ScamMQOApmMTZuiVs0a4b8B9lJg62QJfhJDN3PSB7nCGCBuQ5l23vcmIWY0XWQf1Q+ 1TBl0cUsjcOYDNOF55BZPH/Auq90uzWq9CRSOZej2Bh1oA1NMvSYh7Z5GHaDA7opAru8 gUwGFIeILW8I0wAmB9l/yFTIUKOFlmEBaovOH6OucqnxjKYN1UV1NUIEBbzEgrvcYKyW n8ntwA7GHFikncX2H5QKueOtsNZllBhrsoUhAd5A+40KVWPHYNdKHYs0rfcNPKSX3kdQ FpBw== X-Gm-Message-State: ALyK8tLZhVqK1QkHGVxyQe5ya3FY44CRxeEQOgUs9DNmy8p+6eCrIvOhhAzZSTDgtCnRYw== X-Received: by 10.28.46.145 with SMTP id u139mr7152710wmu.97.1464546949308; Sun, 29 May 2016 11:35:49 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56b5:0:ac27:b86c:7764:9429]) by smtp.gmail.com with ESMTPSA id h2sm7761550wjv.15.2016.05.29.11.35.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 May 2016 11:35:48 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Sun, 29 May 2016 20:35:17 +0200 Message-Id: <1464546923-13439-21-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1464546923-13439-1-git-send-email-daniel.vetter@ffwll.ch> References: <1464546923-13439-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter , Intel Graphics Development , Daniel Vetter Subject: [Intel-gfx] [PATCH 20/26] drm/atomic: kerneldoc for drm_atomic_crtc_needs_modeset X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Just a bit of drive-by ocd. Signed-off-by: Daniel Vetter --- include/drm/drm_atomic.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index d9504dfcd1cc..465a1212f4f0 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -198,6 +198,13 @@ int __must_check drm_atomic_nonblocking_commit(struct drm_atomic_state *state); (plane_state) = (__state)->planes[__i].state, 1); \ (__i)++) \ for_each_if (plane_state) + +/** + * drm_atomic_crtc_needs_modeset - compute combined modeset need + * @state: &drm_crtc_state for the CRTC + * + * This computes the combined need for a modeset for @state. + */ static inline bool drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state) {