qiprog_lpc: Avoid awkward pointer casts in favor of bit-shifts

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>