]> git.ipfire.org Git - thirdparty/linux.git/commit
mfd: macsmc: Make SMC write buffers const
authorAtharva Tiwari <atharvatiwarilinuxdev@gmail.com>
Tue, 7 Oct 2025 13:05:10 +0000 (18:35 +0530)
committerLee Jones <lee@kernel.org>
Thu, 6 Nov 2025 14:03:28 +0000 (14:03 +0000)
commitd306cbbc34cc9aa6ed2235472110fe797f887db7
tree98f9f5bbb76f74a0f2031d007c2aa4ac3e244cb6
parentdbecccac97208bfe5a165aa15423bd4285e41980
mfd: macsmc: Make SMC write buffers const

Mark the write buffer arguments in apple_smc_write(), apple_smc_rw(),
and apple_smc_write_atomic() as const. These functions do not modify
the data provided by the caller, so the parameters should be const
qualified.

Signed-off-by: Atharva Tiwari <atharvatiwarilinuxdev@gmail.com>
Reviewed-by: Sven Peter <sven@kernel.org>
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/macsmc.c
include/linux/mfd/macsmc.h