git: 404689908632 - main - bhyve: remove unnecessary const qualifier in acpi_device.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Mar 2023 11:05:31 UTC
The branch main has been updated by corvink: URL: https://cgit.FreeBSD.org/src/commit/?id=404689908632599ee5b3bcbc289ae7f094368dc5 commit 404689908632599ee5b3bcbc289ae7f094368dc5 Author: Corvin Köhne <corvink@FreeBSD.org> AuthorDate: 2023-03-29 13:13:03 +0000 Commit: Corvin Köhne <corvink@FreeBSD.org> CommitDate: 2023-03-30 11:05:15 +0000 bhyve: remove unnecessary const qualifier in acpi_device.h Those const qualifier declare that the function doesn't change the values internally. It makes no sense to add them in the header file. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39318 --- usr.sbin/bhyve/acpi_device.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/bhyve/acpi_device.h b/usr.sbin/bhyve/acpi_device.h index 5fb3ea18e481..49e55c7d4f14 100644 --- a/usr.sbin/bhyve/acpi_device.h +++ b/usr.sbin/bhyve/acpi_device.h @@ -26,13 +26,13 @@ struct acpi_device; * @param[in] hid Hardware ID of the ACPI device. Should always be a NULL * terminated string. */ -int acpi_device_create(struct acpi_device **const new_dev, - struct vmctx *const vm_ctx, const char *const name, const char *const hid); -void acpi_device_destroy(struct acpi_device *const dev); +int acpi_device_create(struct acpi_device **new_dev, struct vmctx *vm_ctx, + const char *name, const char *hid); +void acpi_device_destroy(struct acpi_device *dev); -int acpi_device_add_res_fixed_ioport(struct acpi_device *const dev, - const UINT16 port, UINT8 length); -int acpi_device_add_res_fixed_memory32(struct acpi_device *const dev, - const UINT8 write_protected, const UINT32 address, const UINT32 length); +int acpi_device_add_res_fixed_ioport(struct acpi_device *dev, UINT16 port, + UINT8 length); +int acpi_device_add_res_fixed_memory32(struct acpi_device *dev, + UINT8 write_protected, UINT32 address, UINT32 length); -void acpi_device_write_dsdt(const struct acpi_device *const dev); +void acpi_device_write_dsdt(const struct acpi_device *dev);