Skip to content

Commit

Permalink
Staging: bcm: Remove typedef for _DEVICE_DRIVER_INFO and call directly.
Browse files Browse the repository at this point in the history
This patch removes typedef for _DEVICE_DRIVER_INFO,
and changes the name of the struct to
bcm_driver_info. In addition, any calls to
typedefs DEVICE_DRIVER_INFO are changed to call
the struct directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Nov 27, 2012
1 parent b4a29e1 commit ff31e74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/bcm/Bcmchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
break;

case IOCTL_BCM_GET_DEVICE_DRIVER_INFO: {
DEVICE_DRIVER_INFO DevInfo;
struct bcm_driver_info DevInfo;

BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "Called IOCTL_BCM_GET_DEVICE_DRIVER_INFO\n");

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/bcm/Ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ typedef enum _BCM_INTERFACE_TYPE {
BCM_PCMCIA
} BCM_INTERFACE_TYPE;

typedef struct _DEVICE_DRIVER_INFO {
struct bcm_driver_info {
NVM_TYPE u32NVMType;
unsigned int MaxRDMBufferSize;
BCM_INTERFACE_TYPE u32InterfaceType;
unsigned int u32DSDStartOffset;
unsigned int u32RxAlignmentCorrection;
unsigned int u32Reserved[10];
} DEVICE_DRIVER_INFO;
};

struct bcm_nvm_readwrite {
void __user *pBuffer;
Expand Down

0 comments on commit ff31e74

Please sign in to comment.