From: H Hartley Sweeten Date: Mon, 10 Mar 2014 21:07:34 +0000 (-0700) Subject: staging: comedi: c6xdigio: tidy up c6xdigio_pwm_write() X-Git-Tag: v3.15-rc1~139^2~258 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19d0a872841a2714444af0ccd2a3e1d7281ef357;p=pandora-kernel.git staging: comedi: c6xdigio: tidy up c6xdigio_pwm_write() The 10-bit pwm value (2-498) is written by banging 2-bits in the data register. Refactor this function to remove the need for the union pcmcmdtype and struct pwmbitstype. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed