Skip to content
Commit 5fc2fa72 authored by James Clark's avatar James Clark
Browse files

coresight: Simplify sysfs accessors using common struct to avoid passing the type



All of the sysfs read callbacks pass structs that have the 'base'
member as the first entry of the struct. As long as this is true,
it's not necessary to pass in the type to the macro.

In the next change, the register will be passed in as a value
rather than creating new functions for each accessor, and it's
not possible to pass in the struct type in this way so just drop
it.

static_asserts ensure that the member isn't moved in the future.

No functional changes.

Signed-off-by: James Clark's avatarJames Clark <james.clark@arm.com>
parent d4f8ce6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment