diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-10-04 12:21:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-10-22 14:49:55 +0300 |
commit | 23ead33bc6ed62abc9adc5fe27b9911e2ef5d209 (patch) | |
tree | be6065a35a013dee5f21fdb0042f96e1e35ad981 /drivers/usb/typec/retimer.c | |
parent | b295d484b97081feba72b071ffcb72fb4638ccfd (diff) | |
download | linux-23ead33bc6ed62abc9adc5fe27b9911e2ef5d209.tar.xz |
device property: Constify fwnode connection match APIs
The fwnode and device parameters are not altered in the fwnode
connection match APIs, constify them.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20221004092129.19412-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/typec/retimer.c')
-rw-r--r-- | drivers/usb/typec/retimer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/retimer.c b/drivers/usb/typec/retimer.c index ee94dbbe4745..8e1055783fe2 100644 --- a/drivers/usb/typec/retimer.c +++ b/drivers/usb/typec/retimer.c @@ -34,7 +34,7 @@ static int retimer_fwnode_match(struct device *dev, const void *fwnode) return device_match_fwnode(dev, fwnode) && dev_name_ends_with(dev, "-retimer"); } -static void *typec_retimer_match(struct fwnode_handle *fwnode, const char *id, void *data) +static void *typec_retimer_match(const struct fwnode_handle *fwnode, const char *id, void *data) { struct device *dev; |