diff options
author | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 09:41:27 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-20 14:25:07 +0200 |
commit | 046b6a171009e1ed9ede02194025e9ccd709beb2 (patch) | |
tree | 2c0562b1acd14ca774e2a696b5d21f50654ca19a /Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml | |
parent | 11a96703943fc4293f50f554b9e33c79ef4f5d8d (diff) | |
download | linux-stable-046b6a171009e1ed9ede02194025e9ccd709beb2.tar.gz linux-stable-046b6a171009e1ed9ede02194025e9ccd709beb2.tar.bz2 linux-stable-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 'Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml')
0 files changed, 0 insertions, 0 deletions