mwl8787: fix pointer addition

cast-to-void needed since offset is in bytes.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
mwl8787: move send_cmd to cmd.c

Also rename {alloc,free}_cmd to cmd_X.

Signed-off-by: Bob Copeland <me@bobcopeland.com>