Staging: replace pr_* with dev_*
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Staging: gdm724x: replace pr_* with dev_*drivers/ drivers/ | +6 | 0 replies | |
| 2/3 | Staging: media: replace pr_* with dev_*drivers/ drivers/ | +7 | 0 replies | |
| 3/3 | Staging: iio: replace pr_* with dev_*drivers/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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