Skip to content

Commit

Permalink
Staging: beceem: Use 32-bit integers for hardware register values
Browse files Browse the repository at this point in the history
Switching to UINT because that's what the rest of this codebase uses.

Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alejandro R. Sedeño authored and Greg Kroah-Hartman committed Nov 11, 2010
1 parent 2dab1ac commit b706113
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/bcm/Adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,8 @@ typedef LINK_REQUEST CONTROL_MESSAGE;

typedef struct _DDR_SETTING
{
ULONG ulRegAddress;
ULONG ulRegValue;
UINT ulRegAddress;
UINT ulRegValue;
}DDR_SETTING, *PDDR_SETTING;
typedef DDR_SETTING DDR_SET_NODE, *PDDR_SET_NODE;
INT
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/bcm/DDRInit.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ int ddr_init(MINI_ADAPTER *Adapter)
{
PDDR_SETTING psDDRSetting=NULL;
ULONG RegCount=0;
ULONG value = 0;
UINT value = 0;
UINT uiResetValue = 0;
UINT uiClockSetting = 0;
int retval = STATUS_SUCCESS;
Expand Down Expand Up @@ -970,7 +970,7 @@ int ddr_init(MINI_ADAPTER *Adapter)
{
value = psDDRSetting->ulRegValue;
}
retval = wrmalt(Adapter, psDDRSetting->ulRegAddress, (PUINT)&value, sizeof(value));
retval = wrmalt(Adapter, psDDRSetting->ulRegAddress, &value, sizeof(value));
if(STATUS_SUCCESS != retval) {
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, 0, 0,"%s:%d\n", __FUNCTION__, __LINE__);
break;
Expand Down

0 comments on commit b706113

Please sign in to comment.