mei: 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 <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e8d2ed7db7
commit
b8d01b7fba
@ -845,7 +845,7 @@ static void mei_cl_bus_dev_release(struct device *dev)
|
|||||||
kfree(cldev);
|
kfree(cldev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct device_type mei_cl_device_type = {
|
static const struct device_type mei_cl_device_type = {
|
||||||
.release = mei_cl_bus_dev_release,
|
.release = mei_cl_bus_dev_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user