Skip to content

Commit f1e2f87

Browse files
committed
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]>
1 parent 10416a3 commit f1e2f87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/firewire/core-device.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static const struct ieee1394_device_id *unit_match(struct device *dev,
171171
return NULL;
172172
}
173173

174-
static bool is_fw_unit(struct device *dev);
174+
static bool is_fw_unit(const struct device *dev);
175175

176176
static int fw_unit_match(struct device *dev, struct device_driver *drv)
177177
{
@@ -679,7 +679,7 @@ static struct device_type fw_unit_type = {
679679
.release = fw_unit_release,
680680
};
681681

682-
static bool is_fw_unit(struct device *dev)
682+
static bool is_fw_unit(const struct device *dev)
683683
{
684684
return dev->type == &fw_unit_type;
685685
}
@@ -835,7 +835,7 @@ static struct device_type fw_device_type = {
835835
.release = fw_device_release,
836836
};
837837

838-
static bool is_fw_device(struct device *dev)
838+
static bool is_fw_device(const struct device *dev)
839839
{
840840
return dev->type == &fw_device_type;
841841
}

0 commit comments

Comments
 (0)