Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2025 10:10:18 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a99a7e0f653f - main - uart: Remove UART_ACPI_CLASS
Message-ID:  <202508131010.57DAAITi099244@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=a99a7e0f653ff548ba38a5017c2db77024499b74

commit a99a7e0f653ff548ba38a5017c2db77024499b74
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2025-08-13 09:14:26 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2025-08-13 09:31:16 +0000

    uart: Remove UART_ACPI_CLASS
    
    It's unused, we can remove it.
    
    Reviewed by:    imp, jhibbits
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D51877
---
 sys/dev/uart/uart_cpu_acpi.c | 8 --------
 sys/dev/uart/uart_cpu_acpi.h | 8 --------
 2 files changed, 16 deletions(-)

diff --git a/sys/dev/uart/uart_cpu_acpi.c b/sys/dev/uart/uart_cpu_acpi.c
index 7382c47a8db6..2e2ff101619b 100644
--- a/sys/dev/uart/uart_cpu_acpi.c
+++ b/sys/dev/uart/uart_cpu_acpi.c
@@ -58,14 +58,6 @@ uart_cpu_acpi_scan(uint8_t interface_type)
 		}
 	}
 
-	SET_FOREACH(cd, uart_acpi_class_set) {
-		curcd = *cd;
-		for (i = 0; curcd[i].cd_hid != NULL; i++) {
-			if (curcd[i].cd_port_subtype == interface_type)
-				return (&curcd[i]);
-		}
-	}
-
 	return (NULL);
 }
 
diff --git a/sys/dev/uart/uart_cpu_acpi.h b/sys/dev/uart/uart_cpu_acpi.h
index 94329e1f1349..c11ead373b86 100644
--- a/sys/dev/uart/uart_cpu_acpi.h
+++ b/sys/dev/uart/uart_cpu_acpi.h
@@ -56,14 +56,6 @@ SET_DECLARE(uart_acpi_class_and_device_set, struct acpi_uart_compat_data);
 #define UART_ACPI_CLASS_AND_DEVICE(data)				\
 	DATA_SET(uart_acpi_class_and_device_set, data)
 
-/*
- * If your UART driver implements uart_class and custom device layer,
- * then use UART_ACPI_CLASS for its declaration
- */
-SET_DECLARE(uart_acpi_class_set, struct acpi_uart_compat_data);
-#define UART_ACPI_CLASS(data)				\
-	DATA_SET(uart_acpi_class_set, data)
-
 /* Try to initialize UART device from ACPI tables */
 int uart_cpu_acpi_setup(int devtype, struct uart_devinfo *di);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508131010.57DAAITi099244>