Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp496915lqh; Thu, 28 Mar 2024 08:01:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWn+1HtY9YRXyHZ3RKoNKgBjfDWCh0ukxSVFrfxEaBTJIVOBnUfe+b5fnQ4pU1b6Av+yeWDg1aIsb5p/747MELX0rZCs997DOGWFyQh2w== X-Google-Smtp-Source: AGHT+IHFh/imde+BMvrbFXjO0JgoTGXAAbB6m7oU7mV2lshucfQYkLNpSbExYqllWrKYSWv/ndgN X-Received: by 2002:a05:6a00:2d1c:b0:6e7:9a5e:3b45 with SMTP id fa28-20020a056a002d1c00b006e79a5e3b45mr3145694pfb.11.1711638067744; Thu, 28 Mar 2024 08:01:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711638067; cv=pass; d=google.com; s=arc-20160816; b=lKePB6/vDfo/7Zey0vEdlMw58ZnGK5sK/wM9GcT5QPaymG/1d08HO9YUjFISYrq7Ui 9+rqESk//ldnn/FiozdlytG6P4OWcoaFmeyqThJfZzNb3ldS8VKH6WXtvs3zkLP4c8bc /2ue8Vs71V3b/qU3k8AxQTtFJewzVb8J4b11DPDnuGUyLzOEmekSfiwICwfiI0TEnZHe 9rDKtRs/yzVAZPFKsuCShJHgDnK3g6EVmHduoe+/8ihXzAIC0ek2XbxapFLkW7ch1RxN T8NI16UYHMykLFj0gGJY3MO9+W0XmubwRvmk9KT0cUAYkP0tanGZ46gpVgaVWuUS1uTl yT5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=lVCKoZbBGmgPMba+uygt1ZNYOjbI400KcrPMv9qgScQ=; fh=NHXwOVr1T/6lGwFLVI6yPvyQyN+VHyiTHueoanc5nZ0=; b=ePhOTFCyeHH0nOIO9cIneJH0gjlsqHyRdOzhbPUq5d/+KmCaZATGxGZkWH4sFZFKM4 lBgbQmdhny3xvRjLpspG0fE1+xokj6hpMNbJEPkzP7CBkdDpN4/J0ZLwkhuh2oYLcuR7 BLsYgjN+rQE4n4+Xtl0YrlwBSosxvHyw1VSjwc0O0a2MsRZELBaabv5UqP2IBU1hNEi6 GBi13+sJjVAHUAgjpedaAkIFXync7S0Sau+J3xlE+fAPgcF/wyFKX3Gkq7XdM1Ayvj7S Qkd2Ojx+wXV2fH5ZjpCGULXx6ThcPddc+m/xp4sWb9zm2aU49y2dAKMSTFs9rfFjZbPL jQSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sLQ1kzBs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-123124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x8-20020aa79188000000b006e6b34c3209si1551190pfa.350.2024.03.28.08.01.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 08:01:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sLQ1kzBs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-123124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EC49FB235E2 for ; Thu, 28 Mar 2024 14:59:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C400128826; Thu, 28 Mar 2024 14:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sLQ1kzBs" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8E3B80028 for ; Thu, 28 Mar 2024 14:58:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637940; cv=none; b=ovPrWQo4Cc7g7TMVUaYTcy4J5lVw1iL3nDck5KmnkqZNdnh0+MoT+t3Nq2EAwnKxbKGCxqDoGtXAYOJDPQN+8af8OztDTLFBoV+4jT2fIH8AYDjNNHNxXKEyJ4/Se/JKVHQJ9a453NUbgUdmD1kKAqo+7GEZ572MZj6pmcjMCUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637940; c=relaxed/simple; bh=S07WbAKWwFFlgqynVgWzUcXXhp61OG6T360LNk25blE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Fdok6XWvojLwutba6sCzJJqeFukTeODYI0VazQFa9XWA+WR2Xiuox+pwf6Wrz81YYGexe1x65OwNCauBdIJzcI6t6rl8xPcf4/swHFZ3DEEUbeINUrf7YboVP59IPHIJvLA4ll0gtisMHOMazpAx2ttuWvdbopkESPH0EhXKsGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=sLQ1kzBs; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dc23bf7e5aaso1047007276.0 for ; Thu, 28 Mar 2024 07:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711637938; x=1712242738; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lVCKoZbBGmgPMba+uygt1ZNYOjbI400KcrPMv9qgScQ=; b=sLQ1kzBsTmHL5IfhfKnUNn0TSOLyPnK8sKWIsbcr3wbpf9N9OOb1ZxoqQ+b13lO35T HPR6ErZpFcWiPi3msAZoOtWKCkzaxK3jot9yAEFsgY8YvgFVzrZzSOmAKEQLaGnBa2gK XPT9TWZ4vmCaQyvEr3CY5aGhO9e0jnBlss7ChJH/UlZ1IfkMOE+i+0Dp21O2Q+4vTrbB byKMtdazigPmGuEGhWfB3AnFHSyEp9xyj1QPf/Bj333AfLfJuW/iSSGcskdE9Rf3rX+f 2tIcuv6ONoNAJxro5QuY7FCZauOYjErrU109LIj9CoNKaO1OlAJAxxzV7JOAKOENzDlf QjMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711637938; x=1712242738; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lVCKoZbBGmgPMba+uygt1ZNYOjbI400KcrPMv9qgScQ=; b=IOj8uX4gfhJewYpXrv9QJum2GR9XTFynJmlj6qm0S0mUalYQBV4YM4eiDxGWVTMo3T onvLQTh+sQXqfDVTyazz+ZsOk405nJFX31l5QwAgfeTayEvVnRYlGF6wo60i5t5j2X5R sNqF47gMXdqLf8CF1t0CUZVfkGzDqIU/aMehcsTtbBE8pBbpnVwIqoNcsPnnGZjtB6K4 HEFUShh1Mt/Nk6+sD1WO/RtM1+aHAzELRogV6j6RWqJMJyrf505yR0FK/7F8VV15Ng0t Erod8/oJ6gF5PMiI8Iz9ZUwioGxjlnK+nXPdpR9q+QfjSeXYPVURvC5xTPtBJfoFG7oL YGgw== X-Forwarded-Encrypted: i=1; AJvYcCWfTJ7DvWi9v8OtkkCjCrxFpYSe9R8xDDilT2ZHKTbSN/SDwnzCJp7Ga4u0FoPT4Fywp7bzVDpDXVXyGKS0Twol520SkN2GRD3RDlSs X-Gm-Message-State: AOJu0YxDnJer6voCHNY+3tKDebtgwaMwXwOQCso1cZm8rLUE4cZ/4NYx hZ+yFAWNkFunCqMTgQR5Yw93cVrgmih5RdZpuoBCMOFLa0gXwvBoFDSleD5syNzbN2JFfAOrZiT ZquXtgBKdNdLGJlAczJcWTHRKy1dBH1lhnSPQhQ== X-Received: by 2002:a25:ddc6:0:b0:dcb:38d3:3c6a with SMTP id u189-20020a25ddc6000000b00dcb38d33c6amr3189252ybg.46.1711637937782; Thu, 28 Mar 2024 07:58:57 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240328-msm-dp-cleanup-v2-0-a5aed9798d32@quicinc.com> <20240328-msm-dp-cleanup-v2-1-a5aed9798d32@quicinc.com> In-Reply-To: <20240328-msm-dp-cleanup-v2-1-a5aed9798d32@quicinc.com> From: Dmitry Baryshkov Date: Thu, 28 Mar 2024 16:58:47 +0200 Message-ID: Subject: Re: [PATCH v2 1/6] drm/msm/dp: Drop unused dp_debug struct To: Bjorn Andersson Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Bjorn Andersson Content-Type: text/plain; charset="UTF-8" On Thu, 28 Mar 2024 at 16:35, Bjorn Andersson wrote: > > From: Bjorn Andersson > > The members of struct dp_debug are no longer used, so the only purpose > of this struct is as a type of the return value of dp_debug_get(), to > signal success/error. > > Drop the struct in favor of signalling the result of initialization > using an int, then merge dp_debug_get() with dp_debug_init() to avoid > the unnecessar boilerplate code. > > Signed-off-by: Bjorn Andersson > --- > drivers/gpu/drm/msm/dp/dp_debug.c | 59 +++++++++++-------------------------- > drivers/gpu/drm/msm/dp/dp_debug.h | 38 +++++++----------------- > drivers/gpu/drm/msm/dp/dp_display.c | 10 ++----- > 3 files changed, 31 insertions(+), 76 deletions(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry