From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F172303A23 for ; Mon, 10 Nov 2025 17:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762797532; cv=none; b=pW5mCY3UY/aCVtVIvCmc86JzAEvrYJcav7yUD/HSnHGNxnoXUOrrgQMGZCN7Pf5cvQF6KDIi0wBbRRmUu4fRg0BQ9iXD+vp07uqEftKiBDlCRqv0ZtSd+aTn1kaMtwxbVgnWNIA0ey2GL3b+y00aJkynAm678CrXVfQeiKXRswk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762797532; c=relaxed/simple; bh=WGl8DP/e/+VnYn8C3uYrsdOuYr6SojLzWShAwr+tv6k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TQ9D50sIBbBplC81DeIHBJGGo01SvZsTSG5K4CzN7CFjkFoNoK2JD0ufNmPJAHy2c2jF8mXWSdMCykwsYxtOv0/F6BGefTWYAIPwbjJwDR8ifmtO5ehVD5p6H9vjazIEtNl9iPqsH87DdZ6mIKzTwFck2zy0W8hIW2Me4u+5QqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=a21IpJTp; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a21IpJTp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1762797530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mKzPhPd7GeQ9w5/pssxPxDnXDnFFtiQ8qQ0W7dttM3g=; b=a21IpJTpWQxXrFNKiQSIgzt9GonO46jBzjFCRyJWtKTKgw4lF8TR/IRH0QBfXEdUKiEkwO rmwLaJlNiwWeBICI9565Li/HouHWurgM285HAvgOrNJKtDJrdOi2nGBAk/KiWaEyzVBeGV fupC0hpiUkbmiidwfcEdIvN5bCaq1f8= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-378-mz8aEsrXO2yFozxKi_58aQ-1; Mon, 10 Nov 2025 12:58:45 -0500 X-MC-Unique: mz8aEsrXO2yFozxKi_58aQ-1 X-Mimecast-MFC-AGG-ID: mz8aEsrXO2yFozxKi_58aQ_1762797523 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 63123180048E; Mon, 10 Nov 2025 17:58:43 +0000 (UTC) Received: from p16v.luc.cera.cz (unknown [10.45.224.193]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id A1CB91800367; Mon, 10 Nov 2025 17:58:40 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Petr Oros , Prathosh Satish , Vadim Fedorenko , Arkadiusz Kubalewski , Jiri Pirko , Michal Schmidt , linux-kernel@vger.kernel.org Subject: [PATCH net-next 6/6] dpll: zl3073x: Remove unused dev wrappers Date: Mon, 10 Nov 2025 18:58:18 +0100 Message-ID: <20251110175818.1571610-7-ivecera@redhat.com> In-Reply-To: <20251110175818.1571610-1-ivecera@redhat.com> References: <20251110175818.1571610-1-ivecera@redhat.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Remove several zl3073x_dev_... inline wrapper functions from core.h as they are no longer used by any callers. Removed functions: * zl3073x_dev_ref_ffo_get * zl3073x_dev_ref_is_enabled * zl3073x_dev_synth_dpll_get * zl3073x_dev_synth_is_enabled * zl3073x_dev_out_signal_format_get This is a cleanup after recent refactoring, as the remaining callers now fetch the state object and use the base helpers directly. Reviewed-by: Petr Oros Tested-by: Prathosh Satish Signed-off-by: Ivan Vecera --- drivers/dpll/zl3073x/core.h | 77 ------------------------------------- 1 file changed, 77 deletions(-) diff --git a/drivers/dpll/zl3073x/core.h b/drivers/dpll/zl3073x/core.h index fe8b70e25d3cc..09bca2d0926d5 100644 --- a/drivers/dpll/zl3073x/core.h +++ b/drivers/dpll/zl3073x/core.h @@ -182,21 +182,6 @@ zl3073x_output_pin_out_get(u8 id) return id / 2; } -/** - * zl3073x_dev_ref_ffo_get - get current fractional frequency offset - * @zldev: pointer to zl3073x device - * @index: input reference index - * - * Return: the latest measured fractional frequency offset - */ -static inline s64 -zl3073x_dev_ref_ffo_get(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_ref *ref = zl3073x_ref_state_get(zldev, index); - - return zl3073x_ref_ffo_get(ref); -} - /** * zl3073x_dev_ref_freq_get - get input reference frequency * @zldev: pointer to zl3073x device @@ -227,21 +212,6 @@ zl3073x_dev_ref_is_diff(struct zl3073x_dev *zldev, u8 index) return zl3073x_ref_is_diff(ref); } -/** - * zl3073x_dev_ref_is_enabled - check if the given input reference is enabled - * @zldev: pointer to zl3073x device - * @index: input reference index - * - * Return: true if input refernce is enabled, false otherwise - */ -static inline bool -zl3073x_dev_ref_is_enabled(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_ref *ref = zl3073x_ref_state_get(zldev, index); - - return zl3073x_ref_is_enabled(ref); -} - /* * zl3073x_dev_ref_is_status_ok - check the given input reference status * @zldev: pointer to zl3073x device @@ -257,22 +227,6 @@ zl3073x_dev_ref_is_status_ok(struct zl3073x_dev *zldev, u8 index) return zl3073x_ref_is_status_ok(ref); } -/** - * zl3073x_dev_synth_dpll_get - get DPLL ID the synth is driven by - * @zldev: pointer to zl3073x device - * @index: synth index - * - * Return: ID of DPLL the given synthetizer is driven by - */ -static inline u8 -zl3073x_dev_synth_dpll_get(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_synth *synth; - - synth = zl3073x_synth_state_get(zldev, index); - return zl3073x_synth_dpll_get(synth); -} - /** * zl3073x_dev_synth_freq_get - get synth current freq * @zldev: pointer to zl3073x device @@ -289,22 +243,6 @@ zl3073x_dev_synth_freq_get(struct zl3073x_dev *zldev, u8 index) return zl3073x_synth_freq_get(synth); } -/** - * zl3073x_dev_synth_is_enabled - check if the given synth is enabled - * @zldev: pointer to zl3073x device - * @index: synth index - * - * Return: true if synth is enabled, false otherwise - */ -static inline bool -zl3073x_dev_synth_is_enabled(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_synth *synth; - - synth = zl3073x_synth_state_get(zldev, index); - return zl3073x_synth_is_enabled(synth); -} - /** * zl3073x_dev_out_synth_get - get synth connected to given output * @zldev: pointer to zl3073x device @@ -341,21 +279,6 @@ zl3073x_dev_out_is_enabled(struct zl3073x_dev *zldev, u8 index) return zl3073x_synth_is_enabled(synth) && zl3073x_out_is_enabled(out); } -/** - * zl3073x_dev_out_signal_format_get - get output signal format - * @zldev: pointer to zl3073x device - * @index: output index - * - * Return: signal format of given output - */ -static inline u8 -zl3073x_dev_out_signal_format_get(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_out *out = zl3073x_out_state_get(zldev, index); - - return zl3073x_out_signal_format_get(out); -} - /** * zl3073x_dev_out_dpll_get - get DPLL ID the output is driven by * @zldev: pointer to zl3073x device -- 2.51.0