lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1409748360-17063-1-git-send-email-abbotti@mev.co.uk>
Date:	Wed,  3 Sep 2014 13:45:23 +0100
From:	Ian Abbott <abbotti@....co.uk>
To:	driverdev-devel@...uxdriverproject.org
Cc:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	Ian Abbott <abbotti@....co.uk>,
	H Hartley Sweeten <hartleys@...ionengravers.com>,
	linux-kernel@...r.kernel.org
Subject: [PATCH 00/37] staging: comedi: rename command flags for consistency

The various macros in "comedi.h" used to construct values for the
`flags` member of `struct comedi_cmd` are named inconsistently.  Some of
the macros with the `TRIG_` prefix are from a long defunct Comedi
trigger interface that was replaced with the current Comedi asynchronous
command interface many years ago, co-opting most of the `TRIG_` macros
in the process.  Some of them are still used with various other members
of `struct comedi_cmd` to select trigger sources.  Others are used with
the `flags` member.  There are other macros for use with the command
`flags` member using the prefix `CMDF_`, and some of the old `TRIG_`
macros have been renamed already, keeping the old names around as
synonyms for backwards compatibility.

For consistency, rename the `TRIG_` prefixed macros used with the
command `flags` member to use the prefix `CMDF_` and redefine the
renamed macros as synonyms for backwards compatibilty.

There are still some left-over `TRIG_` macros unused by the Comedi
kernel code, but the user-space Comedilib library may still be trying to
use them, so hang onto them for now.

01) staging: comedi: comedi_test: use CMDF_PRIORITY
02) staging: comedi: das16: use CMDF_PRIORITY
03) staging: comedi: das1800: use CMDF_PRIORITY
04) staging: comedi: ni_at_a2150: use CMDF_PRIORITY
05) staging: comedi: ni_labpc_common: use CMDF_PRIORITY
06) staging: comedi: add CMDF_WAKE_EOS as synonym for TRIG_WAKE_EOS
07) staging: comedi: use CMDF_WAKE_EOS in do_cmd_ioctl()
08) staging: comedi: addi_apci_3120: use CMDF_WAKE_EOS
09) staging: comedi: adl_pci9118: use CMDF_WAKE_EOS
10) staging: comedi: adv_pci1710: use CMDF_WAKE_EOS
11) staging: comedi: amplc_pci230: use CMDF_WAKE_EOS
12) staging: comedi: cb_pcidas: use CMDF_WAKE_EOS
13) staging: comedi: cb_pcidas64: use CMDF_WAKE_EOS
14) staging: comedi: das1800: use CMDF_WAKE_EOS
15) staging: comedi: ni_labpc_common: use CMDF_WAKE_EOS
16) staging: comedi: ni_mio_common: use CMDF_WAKE_EOS
17) staging: comedi: ni_tiocmd: use CMDF_WAKE_EOS
18) staging: comedi: pcl812: use CMDF_WAKE_EOS
19) staging: comedi: rtd520: use CMDF_WAKE_EOS
20) staging: comedi: add CMDF_BOGUS as synonym for TRIG_BOGUS
21) staging: comedi: use CMDF_BOGUS in do_cmd_ioctl()
22) staging: comedi: add CMDF_ROUND_... as synonyms for TRIG_ROUND_...
23) staging: comedi: 8253.h: use CMDF_ROUND_...
24) staging: comedi: addi_apci_3xxx: use CMDF_ROUND_...
25) staging: comedi: adl_pci9118: use CMDF_ROUND_...
26) staging: comedi: amplc_pci230: use CMDF_ROUND_...
27) staging: comedi: cb_pcidas64: use CMDF_ROUND_...
28) staging: comedi: das1800: use CMDF_ROUND_...
29) staging: comedi: dt282x: use CMDF_ROUND_...
30) staging: comedi: dt3000: use CMDF_ROUND_...
31) staging: comedi: me4000: use CMDF_ROUND_...
32) staging: comedi: ni_at_a2150: use CMDF_ROUND_...
33) staging: comedi: ni_labpc_common: use CMDF_ROUND_...
34) staging: comedi: ni_mio_common: use CMDF_ROUND_...
35) staging: comedi: ni_pcidio: use CMDF_ROUND_...
36) staging: comedi: rtd520: use CMDF_ROUND_...
37) staging: comedi: s626: use CMDF_ROUND_...

 drivers/staging/comedi/comedi.h                    | 32 +++++++++++------
 drivers/staging/comedi/comedi_fops.c               |  4 +--
 drivers/staging/comedi/drivers/8253.h              |  8 ++---
 .../comedi/drivers/addi-data/hwdrv_apci3120.c      |  4 +--
 drivers/staging/comedi/drivers/addi_apci_3xxx.c    |  8 ++---
 drivers/staging/comedi/drivers/adl_pci9118.c       | 26 +++++++-------
 drivers/staging/comedi/drivers/adv_pci1710.c       |  4 +--
 drivers/staging/comedi/drivers/amplc_pci230.c      | 14 ++++----
 drivers/staging/comedi/drivers/cb_pcidas.c         |  2 +-
 drivers/staging/comedi/drivers/cb_pcidas64.c       | 18 +++++-----
 drivers/staging/comedi/drivers/comedi_test.c       |  2 +-
 drivers/staging/comedi/drivers/das16.c             |  4 +--
 drivers/staging/comedi/drivers/das1800.c           | 16 ++++-----
 drivers/staging/comedi/drivers/dt282x.c            |  8 ++---
 drivers/staging/comedi/drivers/dt3000.c            |  8 ++---
 drivers/staging/comedi/drivers/me4000.c            | 14 ++++----
 drivers/staging/comedi/drivers/ni_at_a2150.c       | 12 +++----
 drivers/staging/comedi/drivers/ni_labpc_common.c   | 14 ++++----
 drivers/staging/comedi/drivers/ni_mio_common.c     | 40 +++++++++++-----------
 drivers/staging/comedi/drivers/ni_pcidio.c         | 10 +++---
 drivers/staging/comedi/drivers/ni_tiocmd.c         |  2 +-
 drivers/staging/comedi/drivers/pcl812.c            |  2 +-
 drivers/staging/comedi/drivers/rtd520.c            | 30 ++++++++--------
 drivers/staging/comedi/drivers/s626.c              |  8 ++---
 24 files changed, 150 insertions(+), 140 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ