From: H Hartley Sweeten Date: Fri, 22 Mar 2013 22:54:20 +0000 (-0700) Subject: staging: comedi: s626: simplify dio register access X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~438 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=100b4edcad71cea9cd815c3519bfe2e93811bd44;p=pandora-kernel.git staging: comedi: s626: simplify dio register access This driver has three dio subdevices, each with 16 channels. These subdevices use hardware registers that are spaced 0x10 bytes apart for each "group" of 16 channels. Create new macros to get the correct addresses for each register based on the dio "group". Use the s->private (void *) to hold the "group" number to use in the subdevice functions. This allows removing struct dio_private and all its uses. It also removes the ugly casts used to get the register address. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed