Author: Alison Schofield <amsfield22@gmail.com> Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield Reviewed-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron — drivers/iio/gyro/bmg160_core.c | 86 +++++++++++++++++++++——————— 1 file changed, 44 insertions(+), 42 deletions(-) …
Catégorie : Coccinelle
Apr 10 2016
iio: accel: bmc150: use regmap to retrieve struct device
Author: Alison Schofield <amsfield22@gmail.com> Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield Reviewed-by: Irina Tirdea Reviewed-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron — drivers/iio/accel/bmc150-accel-core.c | 99 +++++++++++++++++++—————- 1 file changed, 54 …
Apr 09 2016
staging: lustre: split error handling code into multiple labels
Author: Cihangir Akturk <cakturk@gmail.com> Instead of using a switch-case statement to find out what kind of error has just happened, split error handling logic into multiple labels and jump right into the appropriate label to do the error handling. This way it is easier to follow different code paths. It also looks easy on the …
Apr 09 2016
staging: fsl-mc: get rid of mutex_locked variables
Author: Cihangir Akturk <cakturk@gmail.com> Remove mutex_locked variables which are used to determine whether mutex is locked, instead add another label to unlock mutex on premature exits due to an error. This patch also addresses the folowing warnings reported by coccinelle: drivers/staging/fsl-mc/bus/mc-allocator.c:237:1-7: preceding lock on line 204 drivers/staging/fsl-mc/bus/mc-allocator.c:89:1-7: preceding lock on line 57 drivers/staging/fsl-mc/bus/mc-allocator.c:157:1-7: preceding lock …
Apr 09 2016
uprobes/x86: Constify uprobe_xol_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The uprobe_xol_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Cc: Andrew Morton Cc: Linus Torvalds Cc: Oleg Nesterov Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: kernel-janitors@vger.kernel.org Link: http://lkml.kernel.org/r/1460200649-32526-1-git-send-email-Julia.Lawall@lip6.fr Signed-off-by: Ingo Molnar — arch/x86/kernel/uprobes.c | 4 ++– …
Apr 09 2016
USB: serial: ftdi_sio: constify ftdi_sio_quirk structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The ftdi_sio_quirk structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Johan Hovold — drivers/usb/serial/ftdi_sio.c | 16 ++++++++——– 1 file changed, 8 insertions(+), 8 deletions(-) diff –git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 3a814e8..0082080 100644 — a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -93,27 +93,27 @@ …
Apr 09 2016
qdisc: constify meta_type_ops structures
Author: Julia Lawall <julia.lawall@lip6.fr> The meta_type_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: David S. Miller — net/sched/em_meta.c | 8 ++++—- 1 file changed, 4 insertions(+), 4 deletions(-) diff –git a/net/sched/em_meta.c b/net/sched/em_meta.c index f2aabc0..a309a07 100644 — a/net/sched/em_meta.c +++ b/net/sched/em_meta.c @@ -796,7 +796,7 …
Apr 09 2016
ALSA: constify ct_timer_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The ct_timer_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Takashi Iwai — sound/pci/ctxfi/cttimer.c | 6 +++— 1 file changed, 3 insertions(+), 3 deletions(-) diff –git a/sound/pci/ctxfi/cttimer.c b/sound/pci/ctxfi/cttimer.c index a5d4604..8f94534 100644 — a/sound/pci/ctxfi/cttimer.c +++ b/sound/pci/ctxfi/cttimer.c @@ -49,7 +49,7 @@ …
Apr 06 2016
iio: accel: mma7455: use regmap to retrieve struct device
Author: Alison Schofield <amsfield22@gmail.com> Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Patch created using Coccinelle plus manual edits. Signed-off-by: Alison Schofield Acked-by: Joachim Eastwood Signed-off-by: Jonathan Cameron — drivers/iio/accel/mma7455_core.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-) …
Apr 01 2016
mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros
Author: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were introduced *long* time ago with promise that one day it will be possible to implement page cache with bigger chunks than PAGE_SIZE. This promise never materialized. And unlikely will. We have many places where PAGE_CACHE_SIZE assumed to be equal to PAGE_SIZE. And it’s constant source of confusion …