mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Driver core: add const to class_create
Adds const to class_create second parameter, because:
struct class {
const char * name;
/*...*/
}
Signed-off-by: Miguel Ojeda Sandonis <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5cbe5f8a58
commit
ab7d7371ac
2 changed files with 2 additions and 2 deletions
|
|
@ -197,7 +197,7 @@ static int class_device_create_uevent(struct class_device *class_dev,
|
|||
* Note, the pointer created here is to be destroyed when finished by
|
||||
* making a call to class_destroy().
|
||||
*/
|
||||
struct class *class_create(struct module *owner, char *name)
|
||||
struct class *class_create(struct module *owner, const char *name)
|
||||
{
|
||||
struct class *cls;
|
||||
int retval;
|
||||
|
|
|
|||
Loading…
Reference in a new issue