From: Daniel Gl?ckner Date: Wed, 11 Aug 2010 01:02:25 +0000 (-0700) Subject: gpiolib: get rid of struct poll_desc and worklet X-Git-Tag: v2.6.36-rc1~192 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ba1821d1b4a506f8c9be93d962f22b24b6140a5;p=pandora-kernel.git gpiolib: get rid of struct poll_desc and worklet As sysfs_notify_dirent has been made irq safe, there is no reason to not call it directly from irq. With the work_struct removed, the remaining element in poll_desc is a sysfs_dirent pointer which may not be NULL. We can therefore store it directly in the idr and pass it as context to the irq handler. Most part of the patch deals with renaming defines and variables to reflect their new use without functional change. I also took the opportunity to initialize the idr statically. Signed-off-by: Daniel Gl?ckner Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed