Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338165
b: refs/heads/master
c: 63df64a
h: refs/heads/master
i:
  338163: 05ba32d
v: v3
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Nov 27, 2012
1 parent afbe7bd commit 9a095e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e91edb71d899818ca769aa372372a8ed998357a
refs/heads/master: 63df64a27a42deb75907b411f0e2f5916febc241
6 changes: 3 additions & 3 deletions trunk/drivers/staging/bcm/Bcmchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,10 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)

case IOCTL_BCM_GPIO_MULTI_REQUEST: {
UCHAR ucResetValue[4];
GPIO_MULTI_INFO gpio_multi_info[MAX_IDX];
PGPIO_MULTI_INFO pgpio_multi_info = (PGPIO_MULTI_INFO)gpio_multi_info;
struct bcm_gpio_multi_info gpio_multi_info[MAX_IDX];
struct bcm_gpio_multi_info *pgpio_multi_info = (struct bcm_gpio_multi_info *)gpio_multi_info;

memset(pgpio_multi_info, 0, MAX_IDX * sizeof(GPIO_MULTI_INFO));
memset(pgpio_multi_info, 0, MAX_IDX * sizeof(struct bcm_gpio_multi_info));

if ((Adapter->IdleMode == TRUE) ||
(Adapter->bShutStatus == TRUE) ||
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/bcm/Ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ enum {
MAX_IDX
};

typedef struct stGPIOMultiInfo {
struct bcm_gpio_multi_info {
unsigned int uiGPIOCommand; /* 1 for set and 0 for get */
unsigned int uiGPIOMask; /* set the correspondig bit to 1 to access GPIO */
unsigned int uiGPIOValue; /* 0 or 1; value to be set when command is 1. */
} __packed GPIO_MULTI_INFO, *PGPIO_MULTI_INFO;
} __packed;

struct bcm_gpio_multi_mode {
unsigned int uiGPIOMode; /* 1 for OUT mode, 0 for IN mode */
Expand Down

0 comments on commit 9a095e0

Please sign in to comment.