aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/aggregator/ssh_packet_layer.c
diff options
context:
space:
mode:
authorJiaxun Yang <[email protected]>2021-01-25 11:59:56 +0000
committerRafael J. Wysocki <[email protected]>2021-01-25 16:30:10 +0000
commit9d56653d14cd5e545599cd9e3013daa17df50cd4 (patch)
tree2484fbb08af102b92030d6a1cb4768647f07c316 /drivers/platform/surface/aggregator/ssh_packet_layer.c
parentACPI: platform: Add platform profile support (diff)
downloadkernel-9d56653d14cd5e545599cd9e3013daa17df50cd4.tar.gz
kernel-9d56653d14cd5e545599cd9e3013daa17df50cd4.zip
ACPI: platform-profile: Drop const qualifier for cur_profile
Drop the const qualifier from the static global cur_profile pointer declaration. This is a preparation patch for passing the cur_profile pointer as parameter to the profile_get() and profile_set() callbacks so that drivers dynamically allocating their driver-data struct, with their platform_profile_handler struct embedded, can use this pointer to get to their driver-data. Note this also requires dropping the const from the pprof platform_profile_register() function argument. Dropping this const is not a problem, non of the queued up consumers of platform_profile_register() actually pass in a const pointer. Link: https://lore.kernel.org/linux-acpi/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Suggested-by: Hans de Goede <[email protected]> Signed-off-by: Jiaxun Yang <[email protected]> [ [email protected]: Also remove const from platform_profile_register() ] Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_packet_layer.c')
0 files changed, 0 insertions, 0 deletions