aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2023-04-19 16:41:27 +0000
committerGreg Kroah-Hartman <[email protected]>2023-04-20 12:25:07 +0000
commit046b6a171009e1ed9ede02194025e9ccd709beb2 (patch)
tree2c0562b1acd14ca774e2a696b5d21f50654ca19a /drivers/platform/x86/intel/pmt/class.c
parentdriver core: update comments in device_rename() (diff)
downloadkernel-046b6a171009e1ed9ede02194025e9ccd709beb2.tar.gz
kernel-046b6a171009e1ed9ede02194025e9ccd709beb2.zip
device property: make device_property functions take const device *
device_property functions do not modify the device pointer passed to them. The underlying of_device and fwnode_ functions actually already take const * arguments. Mark the parameter constant to simplify conversion from of_property to device_property functions, and to let the calling code use const device pointers where possible. Cc: Chris Packham <[email protected]> Reviewed-by: Chris Packham <[email protected]> Reviewed-by: Sakari Ailus <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions