diff options
author | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 18:41:27 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-20 14:25:07 +0200 |
commit | 046b6a171009e1ed9ede02194025e9ccd709beb2 (patch) | |
tree | 2c0562b1acd14ca774e2a696b5d21f50654ca19a /drivers/comedi/comedi_fops.c | |
parent | driver core: update comments in device_rename() (diff) | |
download | linux-046b6a171009e1ed9ede02194025e9ccd709beb2.tar.xz 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/comedi/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions