Skip to content

Commit

Permalink
staging/mei: cleanup driver naming strings
Browse files Browse the repository at this point in the history
1. use only mei_driver_name and remove define MEI_DRIVER_NAME
2. drop MEI_DEV_NAME and assign device name directly
3. drop mei_driver_string, it is not used

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent 68d923d commit c38ea24
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions drivers/staging/mei/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,7 @@
#include "mei.h"
#include "interface.h"


#define MEI_DRIVER_NAME "mei"
#define MEI_DEV_NAME "mei"

/*
* mei driver strings
*/
static char mei_driver_name[] = MEI_DRIVER_NAME;
static const char mei_driver_string[] = "Intel(R) Management Engine Interface";
static const char mei_driver_name[] = "mei";

/* The device pointer */
/* Currently this driver works as long as there is only a single AMT device. */
Expand Down Expand Up @@ -932,7 +924,7 @@ static const struct file_operations mei_fops = {
* Misc Device Struct
*/
static struct miscdevice mei_misc_device = {
.name = MEI_DRIVER_NAME,
.name = "mei",
.fops = &mei_fops,
.minor = MISC_DYNAMIC_MINOR,
};
Expand Down

0 comments on commit c38ea24

Please sign in to comment.