]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: get rid of struct poll_desc and worklet
authorDaniel Gl?ckner <dg@emlix.com>
Wed, 11 Aug 2010 01:02:25 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:08 +0000 (08:59 -0700)
commitb2d4ced35f970c4e56afd7cbac8178e6ed660b1a
treee083b9e40a9573eb362e3b4c1a91dc0071183a7d
parent70d7085106ffb82fcd64b35a7753a24ca7da1e59
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 <dg@emlix.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/gpiolib.c