Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp293990rdb; Sat, 16 Dec 2023 08:29:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBtzZi1esH85hkcRSjrT9xoe34Cogh8pz8eYiyw1E+5mNEZDwNSQmHZRZF7072jMcjYtN3 X-Received: by 2002:a17:906:1084:b0:a22:faec:7d2e with SMTP id u4-20020a170906108400b00a22faec7d2emr2749322eju.113.1702744183228; Sat, 16 Dec 2023 08:29:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702744183; cv=none; d=google.com; s=arc-20160816; b=F+fhpRB5rhuKwnX9lYLUbjEfc4bWurQTo5X16F8vBjwrzDasRY5BFyXwJGVwSK8tvI mdlTTSYSTH5KFtfycVNhYmFAD4FnANER9wmvLMaxp/zcqviQp1BxLR0dA45W3AzyPNro EnJcWm4z5aKZIMC5WnKEJLR0g0zGYYJu7rCCSiFlreDZggCLochP/e1KsIMM6STad5Fl Qq8H2B0O669fpb+7D1dvP7OVdLvqwtw1e6RjU3xhAsOWfrjZ4eYzGMFMsAxk5CcVc4+h OE0C+WZvHsmnAD8brF3YtzTTTKkcoWnsHZVIpnxFYJM7T8BpVkxF1y7AIQFTORb8blN5 QnBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4O+Q+uG5M/KTzI1PKwCAfiw017Nj6I11OqkfEb5dgI8=; fh=nzMX5Jolb3GculGR3f1Z1ReHOqdNjcdazDY5R3X+7M0=; b=wKJjzX7bX7BfYXVajJreyNb714fhl0dfknrz+rOxu0RknkrG6wqi81AG03Tsf8hytd RbA/7SWeGQBYtPJyd5wsyf4bWxVhbwfkdMMcqBBNh85iGQmhT2dJq/c0k59ZmuNE8yT4 Pj9q7Ymc05QSFNY+9ueIljfXUY7aXJ5HcR4aXWSr1cXFpZp0nkEjS2v4qcGm/2J52Af+ Vs5qa0BBdtN9Xg0Y/b6xsLkJolbRYsMWYui7v7e2aDBaiSxW4Rg+0G3rRaaqyueKHJ1J wWiXj9wl6RbHgMAV60BoaiqnFLU7H83noxgBdaiwlkZJx5GWP3XYklV3ioKLmh5vHd25 IgvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JYeTj5EW; spf=pass (google.com: domain of linux-kernel+bounces-2257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2257-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b24-20020a1709062b5800b00a1b774d3d91si8616100ejg.478.2023.12.16.08.29.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 08:29:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JYeTj5EW; spf=pass (google.com: domain of linux-kernel+bounces-2257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2257-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id F15711F238CF for ; Sat, 16 Dec 2023 16:29:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AA943455C; Sat, 16 Dec 2023 16:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JYeTj5EW" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 CBF99321BB; Sat, 16 Dec 2023 16:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-551c03ae050so1814246a12.2; Sat, 16 Dec 2023 08:27:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702744032; x=1703348832; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4O+Q+uG5M/KTzI1PKwCAfiw017Nj6I11OqkfEb5dgI8=; b=JYeTj5EWxkrhr2sfmegs/9eU2KoXflDfvUqzy1lPV7/Ml9expVTbESaWbEjYkeGZLf UBnrnJhMGEJADigqZB/fOKtwg6d4gDzXK4lsp4gNk21UzuZpzIz2Ehq7FWtJvNYt9psw 8+5wPoPiwdcc7wTlT7r5GL1+mG0P9jtq+4DrvsEdS487DnCBJGFUMOVp74LJTNLQR/aK NsWD4QPqVc2BojU9z66FqfftdVYueU8FKd14t1bXiIHYABw2WIkLNEtBeGwzHGtwG21r Zas4eRFRQNZGLYF6jqS4/v9H0vpkiiHTD0qvmYBIk6I4jwRQdUN5q3wHtV0ErsvPHUn4 gVvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702744032; x=1703348832; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4O+Q+uG5M/KTzI1PKwCAfiw017Nj6I11OqkfEb5dgI8=; b=IKcSO4cdl3WyZgLnqWqCc7IYKuGS6jwHNMu6saONIxKdEyze3hwByDMHFTGfml5/LV ft/rB1YtR5fnMAAiQfreOyQ+zAyg6ybCN+2o9Ifn/hIEhDuAd5utPEdJ4bmvMU53zEeP fwommXxiDlpRUSazsinLp9fh7ZkLU/RqdSPHtqx4TBKPgYDE50BtrrgGs/qh7XyGjw6F r0340Rt7n7pOnvSB3Nqm12KJazw8LDyg/Fet3PSMlgrzTV9lOnVqcU4r4dFWZ9f3Bhmq Uhd/EBZ9kAkVVO3xIq3LJh5AvAVctPIb3WB1naghtOTS2bqMYglIFdaw8+Wk7RWmLURT At4Q== X-Gm-Message-State: AOJu0YxulT+WANsmC5u3p693cUm3+G1e4SEfa7vL6ruJnP/Kg5Iatbzs 4jgBthav5lk8CJxQXQhZSQ== X-Received: by 2002:a17:906:d4:b0:a0a:f739:ad6e with SMTP id 20-20020a17090600d400b00a0af739ad6emr5182343eji.31.1702744032054; Sat, 16 Dec 2023 08:27:12 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:e807:d345:6f47:1db9]) by smtp.gmail.com with ESMTPSA id st10-20020a170907c08a00b00a1cd0794696sm11990362ejc.53.2023.12.16.08.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 08:27:11 -0800 (PST) From: Alex Bee To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Andy Yan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: David Airlie , Daniel Vetter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 09/27] drm/rockchip: inno_hdmi: Remove unneeded has audio flag Date: Sat, 16 Dec 2023 17:26:20 +0100 Message-ID: <20231216162639.125215-10-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231216162639.125215-1-knaerzche@gmail.com> References: <20231216162639.125215-1-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Maxime Ripard The sink_has_audio flag is not used anywhere in the driver so let's get rid of it. It's redundant with drm_display_info.has_audio anyway. Signed-off-by: Maxime Ripard Tested-by: Alex Bee --- changes in v2: - imported patch drivers/gpu/drm/rockchip/inno_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index d99896f1a73a..58aff7a9c09a 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -28,7 +28,6 @@ #include "inno_hdmi.h" struct hdmi_data_info { - bool sink_has_audio; unsigned int enc_in_format; unsigned int enc_out_format; unsigned int colorimetry; @@ -554,7 +553,6 @@ static int inno_hdmi_connector_get_modes(struct drm_connector *connector) edid = drm_get_edid(connector, hdmi->ddc); if (edid) { - hdmi->hdmi_data.sink_has_audio = drm_detect_monitor_audio(edid); drm_connector_update_edid_property(connector, edid); ret = drm_add_edid_modes(connector, edid); kfree(edid); -- 2.43.0