linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: comedi: hide subdevice runflags stuff
@ 2015-04-21 12:18 Ian Abbott
  2015-04-21 12:18 ` [PATCH 1/2] staging: comedi: wrap COMEDI_SRF_FREE_SPRIV usage Ian Abbott
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ian Abbott @ 2015-04-21 12:18 UTC (permalink / raw)
  To: driverdev-devel
  Cc: Greg Kroah-Hartman, Ian Abbott, H Hartley Sweeten, linux-kernel

Keep the details of the comedi subdevice `runflags` member local to
"comedi_fops.c".  In particular, the usage of the
`COMEDI_SRF_FREE_SPRIV` run-flag doesn't really fit in all that well
with the others.  It's used as a marker to indicate the subdevice's
`private` pointer can be automatically freed by the subdevice
clean-up code, whereas the others are associated with the operation of
asynchronous comedi commands.  Abstract it's usage away in a couple of
new wrapper functions.

1) staging: comedi: wrap COMEDI_SRF_FREE_SPRIV usage
2) staging: comedi: move COMEDI_SRF_... macros to "comedi_fops.c"

 drivers/staging/comedi/comedi_fops.c               | 41 ++++++++++++++++++++--
 drivers/staging/comedi/comedi_internal.h           |  1 +
 drivers/staging/comedi/comedidev.h                 | 18 +---------
 drivers/staging/comedi/drivers.c                   |  2 +-
 .../staging/comedi/drivers/amplc_dio200_common.c   |  6 ++--
 5 files changed, 45 insertions(+), 23 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-21 17:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-21 12:18 [PATCH 0/2] staging: comedi: hide subdevice runflags stuff Ian Abbott
2015-04-21 12:18 ` [PATCH 1/2] staging: comedi: wrap COMEDI_SRF_FREE_SPRIV usage Ian Abbott
2015-04-21 12:18 ` [PATCH 2/2] staging: comedi: move COMEDI_SRF_... macros to "comedi_fops.c" Ian Abbott
2015-04-21 17:12 ` [PATCH 0/2] staging: comedi: hide subdevice runflags stuff Hartley Sweeten
2015-04-21 17:15   ` Moving comedi to mainline soon? Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).