linux/drivers/staging/gdm724x
Haneen Mohammed 3d719423da Staging: gdm724x: replace pr_* with dev_*
This patch replace pr_err/pr_info with dev_err/dev_info, when
appropriate device structure is found.

Issue found  and resolved using the following Coccinelle script.
pr_err/dev_err was substituted with pr_info/dev_info in the later case.

@r exists@
identifier f, s, i;
position p;
@@
f(...,struct s *i,...) {
<+...
when != i == NULL
pr_err@p(...);
...+>
}
@rr@
identifier r.s, s2, fld;
@@

struct s {
	...
	struct s2 *fld;
	...
};

@rrr@
identifier rr.s2, fld2;
@@

struct s2 {
	...
	struct device fld2;
	...
};
@@
identifier r.i, r.s, rr.fld, rrr.fld2;
position r.p;
@@

-pr_err@p
+dev_err
   (
+ &i->fld->fld2,
...)

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-18 11:21:33 +01:00
..
gdm_endian.c
gdm_endian.h
gdm_lte.c staging: gdm724x: use !x instead of x == NULL 2015-03-16 16:28:47 +01:00
gdm_lte.h staging: removed space after return function in gdm_lte.h 2014-03-16 20:34:28 -07:00
gdm_mux.c Staging: gdm724x: replace pr_* with dev_* 2015-03-18 11:21:33 +01:00
gdm_mux.h staging: gdm724x: Fix incorrect type in assignment 2014-10-20 10:29:18 +08:00
gdm_tty.c Staging: gdm724x: gdm_tty.c: fix missing blank line after variable declaration 2014-07-17 18:05:47 -07:00
gdm_tty.h
gdm_usb.c Staging: gdm724x: replace pr_* with dev_* 2015-03-18 11:21:33 +01:00
gdm_usb.h
hci_packet.h
hci.h
Kconfig
Makefile
netlink_k.c staging: gdm724x: Use NLMSG_HDRLEN 2014-07-22 16:08:13 -07:00
netlink_k.h
TODO