Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337684
b: refs/heads/master
c: 279dda6
h: refs/heads/master
v: v3
  • Loading branch information
Hojung Youn authored and Greg Kroah-Hartman committed Nov 6, 2012
1 parent 1098a8e commit 94d2cbf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 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: 346cf14a962e8ea0d27681de1e930c7c63c43a4b
refs/heads/master: 279dda68e2dcb19c46cb62dd2899d8dac6a9b7aa
44 changes: 22 additions & 22 deletions trunk/drivers/staging/csr/csr_wifi_hip_unifi_signal_names.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,35 @@

struct sig_name
{
s16 id;
const char *name;
s16 id;
const char *name;
};

static const struct sig_name Unifi_bulkcmd_names[] = {
{ 0, "SignalCmd" },
{ 1, "CopyToHost" },
{ 2, "CopyToHostAck" },
{ 3, "CopyFromHost" },
{ 4, "CopyFromHostAck" },
{ 5, "ClearSlot" },
{ 6, "CopyOverlay" },
{ 7, "CopyOverlayAck" },
{ 8, "CopyFromHostAndClearSlot" },
{ 15, "Padding" }
{ 0, "SignalCmd" },
{ 1, "CopyToHost" },
{ 2, "CopyToHostAck" },
{ 3, "CopyFromHost" },
{ 4, "CopyFromHostAck" },
{ 5, "ClearSlot" },
{ 6, "CopyOverlay" },
{ 7, "CopyOverlayAck" },
{ 8, "CopyFromHostAndClearSlot" },
{ 15, "Padding" }
};

const char* lookup_bulkcmd_name(u16 id)
{
if (id < 9)
{
return Unifi_bulkcmd_names[id].name;
}
if (id == 15)
{
return "Padding";
}

return "UNKNOWN";
if (id < 9)
{
return Unifi_bulkcmd_names[id].name;
}
if (id == 15)
{
return "Padding";
}

return "UNKNOWN";
}


0 comments on commit 94d2cbf

Please sign in to comment.