Skip to content

Staging: replace pr_* with dev_*

Haneen Mohammed outreachy 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Staging: gdm724x: replace pr_* with dev_*drivers/staging/gdm724x/gdm_mux.c drivers/staging/gdm724x/gdm_usb.c+6 -50 replies
2/3Staging: media: replace pr_* with dev_*drivers/staging/media/davinci_vpfe/dm365_ipipeif.c drivers/staging/media/lirc/lirc_sasem.c+7 -40 replies
3/3Staging: iio: replace pr_* with dev_*drivers/staging/iio/resolver/ad2s1210.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Staging: replace pr_* with dev_*

dev_* is prefered over pr_* when appropriate device stucture is present. This patch replace pr_err and pr_warn with its dev_ counterpart. Issues found with the help of the following Coccinelle script:

@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,
...)

Haneen Mohammed (3):
Staging: gdm724x: replace pr_* with dev_*
Staging: media: replace pr_* with dev_*
Staging: iio: replace pr_* with dev_*

 drivers/staging/gdm724x/gdm_mux.c                  | 4 ++--
 drivers/staging/gdm724x/gdm_usb.c                  | 7 ++++---
 drivers/staging/iio/resolver/ad2s1210.c            | 6 +++---
 drivers/staging/media/davinci_vpfe/dm365_ipipeif.c | 2 +-
 drivers/staging/media/lirc/lirc_sasem.c            | 9 ++++++---
 5 files changed, 16 insertions(+), 12 deletions(-)
Signature · 1 line
1.9.1