mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
driver core: device_rename's new_name can be const
The new_name argument to device_rename() can be const as kobject_rename's new_name argument is. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
6fd69dc578
commit
6937e8f8c0
2 changed files with 2 additions and 2 deletions
|
|
@ -1599,7 +1599,7 @@ EXPORT_SYMBOL_GPL(device_destroy);
|
|||
* on the same device to ensure that new_name is valid and
|
||||
* won't conflict with other devices.
|
||||
*/
|
||||
int device_rename(struct device *dev, char *new_name)
|
||||
int device_rename(struct device *dev, const char *new_name)
|
||||
{
|
||||
char *old_class_name = NULL;
|
||||
char *new_class_name = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue