Skip to content

Commit 53ec7f2

Browse files
goyalbhumikagregkh
authored andcommitted
usb: make device_type const
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <[email protected]> Acked-by: Heikki Krogerus <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 706d61b commit 53ec7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/common/ulpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static void ulpi_dev_release(struct device *dev)
135135
kfree(to_ulpi_dev(dev));
136136
}
137137

138-
static struct device_type ulpi_dev_type = {
138+
static const struct device_type ulpi_dev_type = {
139139
.name = "ulpi_device",
140140
.groups = ulpi_dev_attr_groups,
141141
.release = ulpi_dev_release,

0 commit comments

Comments
 (0)