From patchwork Mon Sep 24 16:22:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Wang X-Patchwork-Id: 10612663 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 9CEA713A4 for ; Mon, 24 Sep 2018 16:22:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87C5329C92 for ; Mon, 24 Sep 2018 16:22:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BCC629CA7; Mon, 24 Sep 2018 16:22:33 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 273D429C92 for ; Mon, 24 Sep 2018 16:22:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726711AbeIXWZ1 (ORCPT ); Mon, 24 Sep 2018 18:25:27 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:34521 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbeIXWZ1 (ORCPT ); Mon, 24 Sep 2018 18:25:27 -0400 Received: by mail-yw1-f65.google.com with SMTP id m129-v6so2321106ywc.1 for ; Mon, 24 Sep 2018 09:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Et5nxtB46dIV97kXOsKAWhAd4dK/6vNS3gXk39L8Yl4=; b=FDVQMs5Ftzp5YmWIO8YwYWDLSwKiEqdK+XsYs5mXDOPBpYPWYI+jOF+Yw0zOEKtyQd /XgP914OzP36FG4rjZOUdPNQsj6RjTbN5C63ZlS0twFNtwakeeE4CLA1/DY9Oif4MhvA 0anPzx5D+MUaJuPVT0dG+hxSH69afzWKl6Hnw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Et5nxtB46dIV97kXOsKAWhAd4dK/6vNS3gXk39L8Yl4=; b=PB/KkCHdDyV1f1s70saIJ9jztrYMIFHEXYug9T0zGJR6pzGzIfCTqjkNgXbQG7Z4qg Tf/Nq75EUHKdqXOH3tGBQ1/nSDxwsLLPDnGr/o9a77uDjZapenl1/IjtvsLA3xAHZ4mH CQwNzktf+exGSh2LENhKVGbWeHTfO+in+werLIk0QeuNDMGfH3dhl3KbxGAxxRajtB7b xIfhzQ5B1pQUyMjJOMix7jpGyyvHbLNFm+nGeFZ4Mc8n7FYekC5+559ygu5OnZ/wZMA0 Dyg4EqCigFrgzdpxzb4rncWbPZQHm31X0vMaEqYN5hLS2xTpyyLHo/Y5jv/5PplWaWdB cPig== X-Gm-Message-State: APzg51AQaIG/2HlaVOYuc8SRg1WB7tdq/zogy+PPAH3jjgUANNrQnL1u rHIiuJtNwE17fiWBaTmdSKBFuQ== X-Google-Smtp-Source: ANB0Vda8WwNqE9rfdS6O73dB6TfVxIk1TIP8gJzjHaVi8J2l8OVE9qx1rFf8+C8ciPl+GnHzTTTt9A== X-Received: by 2002:a81:5fd4:: with SMTP id t203-v6mr5071425ywb.84.1537806151579; Mon, 24 Sep 2018 09:22:31 -0700 (PDT) Received: from bzwang.cnc.corp.google.com ([2620:0:1013:11:6f9e:dcbe:41ef:a61]) by smtp.gmail.com with ESMTPSA id v34-v6sm9791001ywh.45.2018.09.24.09.22.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 09:22:30 -0700 (PDT) From: Bruce Wang To: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: seanpaul@chromium.org, jsanka@codeaurora.org, robdclark@gmail.com, abhinavk@codeaurora.org, jcrouse@codeaurora.org Subject: [PATCH v3 0/7] drm/msm/dpu: Clean up dpu code Date: Mon, 24 Sep 2018 12:22:21 -0400 Message-Id: <20180924162228.180689-1-bzwang@chromium.org> X-Mailer: git-send-email 2.19.0.444.g18242da7ef-goog MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Removes uneeded checks and unused variables. Changes some function that do not need return values to void. Bruce Wang (7): drm/msm/dpu: Remove unneeded checks in dpu_plane.c drm/msm/dpu: Clean up plane atomic disable/update drm/msm/dpu: Remove unneeded checks in dpu_crtc.c drm/msm/dpu: Change _dpu_crtc_power_enable to void drm/msm/dpu: Change _dpu_crtc_vblank_enable_no_lock to void drm/msm/dpu: Make dpu_plane_danger_signal_ctrl void drm/msm/dpu: Make _dpu_plane_get_aspace void drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 253 ++++--------------- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 280 +++------------------- 2 files changed, 70 insertions(+), 463 deletions(-)