From: H Hartley Sweeten Date: Tue, 4 Jun 2013 02:05:45 +0000 (-0700) Subject: staging: comedi: pcmda12: tidy up zero_chans() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~276 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef7654c056dbcf19fc560fad1b28ee611b487469;p=pandora-kernel.git staging: comedi: pcmda12: tidy up zero_chans() Rename the function so it has namespace associated with the driver. For aesthetic reasons, move the function closer to it's only caller. Pass the comedi_subdevice pointer to the function so we can get the number of channels to reset from it instead of using the 'CHANS' define. Remove the 'CHANS' define since it's a very generic name. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed