diff options
| author | Takashi Sakamoto <[email protected]> | 2023-12-24 22:23:00 +0000 |
|---|---|---|
| committer | Takashi Sakamoto <[email protected]> | 2024-01-08 00:36:56 +0000 |
| commit | f1e2f87834f4f8427e5dd282312f552e8ca02d1c (patch) | |
| tree | 824c0bd14f4add30009635682b657b4ef1f0c147 /drivers/firewire/core-device.c | |
| parent | firewire: make fw_bus_type const (diff) | |
| download | kernel-f1e2f87834f4f8427e5dd282312f552e8ca02d1c.tar.gz kernel-f1e2f87834f4f8427e5dd282312f552e8ca02d1c.zip | |
firewire: core: adds constant qualifier for local helper functions
Some local functions just handles given argument as mutable, thus it is
preferable to add constant qualifier to them.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Sakamoto <[email protected]>
Diffstat (limited to 'drivers/firewire/core-device.c')
| -rw-r--r-- | drivers/firewire/core-device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c index 7ca8e31dadb5..f39075c77de0 100644 --- a/drivers/firewire/core-device.c +++ b/drivers/firewire/core-device.c @@ -171,7 +171,7 @@ static const struct ieee1394_device_id *unit_match(struct device *dev, return NULL; } -static bool is_fw_unit(struct device *dev); +static bool is_fw_unit(const struct device *dev); static int fw_unit_match(struct device *dev, struct device_driver *drv) { @@ -679,7 +679,7 @@ static struct device_type fw_unit_type = { .release = fw_unit_release, }; -static bool is_fw_unit(struct device *dev) +static bool is_fw_unit(const struct device *dev) { return dev->type == &fw_unit_type; } @@ -835,7 +835,7 @@ static struct device_type fw_device_type = { .release = fw_device_release, }; -static bool is_fw_device(struct device *dev) +static bool is_fw_device(const struct device *dev) { return dev->type == &fw_device_type; } |
