From: H Hartley Sweeten Date: Mon, 10 Mar 2014 21:07:40 +0000 (-0700) Subject: staging: comedi: c6xdigio: add readback of last pwm channel values X-Git-Tag: v3.15-rc1~139^2~252 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d9c93b4481f03a4f7658b97d6dc8996470a71e5;p=pandora-kernel.git staging: comedi: c6xdigio: add readback of last pwm channel values Add and (*insn_read) for the PWM subdevice to allow reading back the last value written to the channels. There are only 2 PWM channels and they have a maxdata of 500. Pack the last values in the subdevice 'state' instead of adding a private data struct to this driver. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed