kernel-hacking-2024-linux-s.../drivers/watchdog
Julia Lawall 2855d28a35 [PATCH 13/13] drivers/watchdog: use USB API functions rather than constants
This set of patches introduces calls to the following set of functions:

usb_endpoint_dir_in(epd)
usb_endpoint_dir_out(epd)
usb_endpoint_is_bulk_in(epd)
usb_endpoint_is_bulk_out(epd)
usb_endpoint_is_int_in(epd)
usb_endpoint_is_int_out(epd)
usb_endpoint_num(epd)
usb_endpoint_type(epd)
usb_endpoint_xfer_bulk(epd)
usb_endpoint_xfer_control(epd)
usb_endpoint_xfer_int(epd)
usb_endpoint_xfer_isoc(epd)

In some cases, introducing one of these functions is not possible, and it
just replaces an explicit integer value by one of the following constants:

USB_ENDPOINT_XFER_BULK
USB_ENDPOINT_XFER_CONTROL
USB_ENDPOINT_XFER_INT
USB_ENDPOINT_XFER_ISOC

An extract of the semantic patch that makes these changes is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r1@ struct usb_endpoint_descriptor *epd; @@

- ((epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) ==
- \(USB_ENDPOINT_XFER_CONTROL\|0\))
+ usb_endpoint_xfer_control(epd)

@r5@ struct usb_endpoint_descriptor *epd; @@

- ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) ==
-  \(USB_DIR_IN\|0x80\))
+ usb_endpoint_dir_in(epd)

@inc@
@@

#include <linux/usb.h>

@depends on !inc && (r1||r5)@
@@

+ #include <linux/usb.h>
  #include <linux/usb/...>
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2009-03-25 09:03:50 +00:00
..
acquirewdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
advantechwdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
alim1535_wdt.c
alim7101_wdt.c
ar7_wdt.c
at32ap700x_wdt.c
at91rm9200_wdt.c [ARM] 5390/1: AT91: Watchdog fixes 2009-02-14 16:01:57 +00:00
at91sam9_wdt.c [ARM] 5390/1: AT91: Watchdog fixes 2009-02-14 16:01:57 +00:00
bfin_wdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
booke_wdt.c powerpc: Fix Book-E watchdog timer interval setting 2008-11-08 12:38:59 -06:00
cpu5wdt.c
cpwd.c [WATCHDOG] cpwd.c & riowd.c - unlocked_ioctl 2009-03-25 08:54:57 +00:00
davinci_wdt.c [WATCHDOG] davinci: convert to ioremap() + io[read|write] 2009-03-25 08:57:43 +00:00
ep93xx_wdt.c
eurotechwdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
gef_wdt.c [WATCHDOG] gef_wdt.c: fsl_get_sys_freq() failure not noticed 2009-03-05 14:02:53 +00:00
geodewdt.c
hpwdt.c [WATCHDOG] hpwdt: Fix kdump when using hpwdt 2008-12-01 15:55:10 +00:00
i6300esb.c [WATCHDOG] pci: use pci_ioremap_bar() in drivers/watchdog 2008-10-24 07:47:24 +00:00
ib700wdt.c [WATCHDOG] ib700wdt - add timeout parameter 2008-12-31 16:12:16 +00:00
ibmasr.c
indydog.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
iop_wdt.c
it87_wdt.c
it8712f_wdt.c
iTCO_vendor.h
iTCO_vendor_support.c [WATCHDOG] iTCO_wdt: fix SMI_EN regression 2 2009-02-14 08:49:23 +00:00
iTCO_wdt.c [WATCHDOG] iTCO_wdt: fix SMI_EN regression 2 2009-02-14 08:49:23 +00:00
ixp4xx_wdt.c
ixp2000_wdt.c
Kconfig [WATCHDOG] iTCO_wdt: fix SMI_EN regression 2 2009-02-14 08:49:23 +00:00
ks8695_wdt.c [WATCHDOG] ks8695_wdt.c: 'CLOCK_TICK_RATE' undeclared 2009-03-05 13:59:05 +00:00
machzwd.c
Makefile [WATCHDOG] Pika Warp appliance watchdog timer 2009-01-12 20:08:56 +00:00
mixcomwd.c
mpc8xxx_wdt.c
mpc5200_wdt.c
mpcore_wdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
mtx-1_wdt.c [WATCHDOG] fix mtx1_wdt compilation failure 2008-11-21 08:20:49 +00:00
mv64x60_wdt.c
omap_wdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
omap_wdt.h
orion5x_wdt.c [WATCHDOG] orion5x_wdt: fix compile issue by providing tclk as platform data 2009-03-25 09:02:50 +00:00
pc87413_wdt.c
pcwd.c
pcwd_pci.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
pcwd_usb.c [PATCH 13/13] drivers/watchdog: use USB API functions rather than constants 2009-03-25 09:03:50 +00:00
pika_wdt.c [WATCHDOG] Pika Warp appliance watchdog timer 2009-01-12 20:08:56 +00:00
pnx4008_wdt.c
rc32434_wdt.c [WATCHDOG] rc32434_wdt: make sure watchdog is not running at startup 2009-03-25 09:02:17 +00:00
rdc321x_wdt.c
riowd.c [WATCHDOG] cpwd.c & riowd.c - unlocked_ioctl 2009-03-25 08:54:57 +00:00
rm9k_wdt.c
s3c2410_wdt.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into s3c-moves2 2008-11-03 14:49:01 +00:00
sa1100_wdt.c Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6 into devel 2008-12-29 18:08:11 +00:00
sb_wdog.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
sbc60xxwdt.c
sbc7240_wdt.c
sbc8360.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
sbc_epx_c3.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
sc520_wdt.c
sc1200wdt.c
sch311x_wdt.c [WATCHDOG] Add SMSC SCH311x Watchdog Timer. 2008-12-31 16:12:47 +00:00
scx200_wdt.c
shwdt.c
smsc37b787_wdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
softdog.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
txx9wdt.c
w83627hf_wdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
w83697hf_wdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
w83697ug_wdt.c [WATCHDOG] w83697ug: add error checking 2009-03-25 08:57:15 +00:00
w83877f_wdt.c
w83977f_wdt.c
wafer5823wdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
wd501p.h
wdrtas.c
wdt.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
wdt285.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
wdt977.c
wdt_pci.c [PATCH] Switch all my contributions stuff to a single common address 2008-10-28 19:16:11 +00:00
wm8350_wdt.c [WATCHDOG] wm8350: Fix section annotations 2009-01-12 20:08:30 +00:00