diff options
author | 2023-04-19 09:41:27 -0700 | |
---|---|---|
committer | 2023-04-20 14:25:07 +0200 | |
commit | 046b6a171009e1ed9ede02194025e9ccd709beb2 (patch) | |
tree | 2c0562b1acd14ca774e2a696b5d21f50654ca19a /drivers/char | |
parent | driver core: update comments in device_rename() (diff) | |
download | linux-046b6a171009e1ed9ede02194025e9ccd709beb2.tar.gz linux-046b6a171009e1ed9ede02194025e9ccd709beb2.tar.bz2 linux-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 <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230419164127.3773278-1-linux@roeck-us.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions