]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: register: move OFFSET declaration to I/O impl block
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 18 Jul 2025 07:26:12 +0000 (16:26 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Fri, 15 Aug 2025 03:02:55 +0000 (12:02 +0900)
commit036c5fa25020d8b1619a96dabbcf9b156f4329bb
tree80828c623dcbdd342cda17ecd6895715c00014f4
parentb567daf4ea4e4565118436aca51d12adf8ab3e12
gpu: nova-core: register: move OFFSET declaration to I/O impl block

The OFFSET const is an I/O property, and having to pass it to the
@common rule makes it impossible to make I/O optional, as we want to get
to eventually.

Thus, move OFFSET to the I/O impl block so it is not needed by the
@common rule anymore.

Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250718-nova-regs-v2-7-7b6a762aa1cd@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/regs/macros.rs