Skip to content

Commit

Permalink
Staging: bcm: Fix a coding style error reported by checkpatch.pl
Browse files Browse the repository at this point in the history
Tool checkpatch.pl reported the following error: extern struct class *bcm_class;"
declaration not allowed in .c files. Therefore, I move this declaration into
the header "headers.h" file.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 6c15e00 commit fbfcdf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/bcm/Bcmchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1974,8 +1974,6 @@ static const struct file_operations bcm_fops = {
.llseek = no_llseek,
};

extern struct class *bcm_class;

int register_control_device_interface(PMINI_ADAPTER Adapter)
{

Expand Down
2 changes: 2 additions & 0 deletions drivers/staging/bcm/headers.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@
#define DRV_VERSION VER_FILEVERSION_STR
#define PFX DRV_NAME " "

extern struct class *bcm_class;

#endif

0 comments on commit fbfcdf2

Please sign in to comment.