Quentin LAMBERT

Articles de cet auteur

drm/i915: Convert dev_priv->dev backpointers to dev_priv->drm

Author: Chris Wilson <chris@chris-wilson.co.uk> Since drm_i915_private is now a subclass of drm_device we do not need to chase the drm_i915_private->dev backpointer and can instead simply access drm_i915_private->drm directly. text data bss dec hex filename 1068757 4565 416 1073738 10624a drivers/gpu/drm/i915/i915.ko 1066949 4565 416 1071930 105b3a drivers/gpu/drm/i915/i915.ko Created by the coccinelle script: @@ struct drm_i915_private *d; …

Lire la suite

ASoC: atmel-pdmic: Simplify use of devm_ioremap_resource

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Remove unneeded error handling on the result of a call to platform_get_resource when the value is passed to devm_ioremap_resource. The Coccinelle semantic patch that makes this change is as follows: // @@ expression pdev,res,n,e,e1; expression ret != 0; identifier l; @@ – res = platform_get_resource(pdev, IORESOURCE_MEM, n); … when != …

Lire la suite

ASoC: Atmel: ClassD: Simplify use of devm_ioremap_resource

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Remove unneeded error handling on the result of a call to platform_get_resource when the value is passed to devm_ioremap_resource. The Coccinelle semantic patch that makes this change is as follows: // @@ expression pdev,res,n,e,e1; expression ret != 0; identifier l; @@ – res = platform_get_resource(pdev, IORESOURCE_MEM, n); … when != …

Lire la suite

crypto: bfin_crc – Simplify use of devm_ioremap_resource

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Remove unneeded error handling on the result of a call to platform_get_resource when the value is passed to devm_ioremap_resource. The Coccinelle semantic patch that makes this change is as follows: // @@ expression pdev,res,n,e,e1; expression ret != 0; identifier l; @@ – res = platform_get_resource(pdev, IORESOURCE_MEM, n); … when != …

Lire la suite

RDMA/cxgb3: Use AF_INET for sin_family field

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Elsewhere the sin_family field holds a value with a name of the form AF_…, so it seems reasonable to do so here as well. Also the values of PF_INET and AF_INET are the same. The Coccinelle semantic patch that makes this change is as follows: // @@ struct sockaddr_in sip; …

Lire la suite

drm/i915: Mass convert dev->dev_private to to_i915(dev)

Author: Chris Wilson <chris@chris-wilson.co.uk> Since we now subclass struct drm_device, we can save pointer dances by noting the equivalence of struct drm_device and struct drm_i915_private, i.e. by using to_i915(). text data bss dec hex filename 1073824 4562 416 1078802 107612 drivers/gpu/drm/i915/i915.ko 1068976 4562 416 1073954 106322 drivers/gpu/drm/i915/i915.ko Created by the coccinelle script: @@ expression E; …

Lire la suite

ASoC: sunxi: fix semicolon.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/sunxi/sun4i-i2s.c:624:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Signed-off-by: Fengguang Wu Acked-by: Maxime Ripard Signed-off-by: Mark Brown — sound/soc/sunxi/sun4i-i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index 72ed2b8..fab5234 100644 — a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -621,7 +621,7 @@ static int sun4i_i2s_probe(struct platform_device …

Lire la suite

atm: horizon: Use setup_timer

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Convert a call to init_timer and accompanying intializations of the timer’s data and function fields to a call to setup_timer. The Coccinelle semantic patch that fixes this problem is as follows: @@ expression t,d,f,e1; identifier x1; statement S1; @@ ( -t.data = d; | -t.function = f; | -init_timer(&t); +setup_timer(&t,f,d); …

Lire la suite

x86/xen: Use DIV_ROUND_UP

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) – 1) /(d)) but is perhaps more readable. The Coccinelle script used to make this change is as follows: @haskernel@ @@ #include @depends on haskernel@ expression n,d; @@ ( – (n + d – 1) / d + DIV_ROUND_UP(n,d) | …

Lire la suite

ALSA: riptide: Use DIV_ROUND_UP

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) – 1) /(d)) but is perhaps more readable. The Coccinelle script used to make this change is as follows: @haskernel@ @@ #include @depends on haskernel@ expression n,d; @@ ( – (n + d – 1) / d + DIV_ROUND_UP(n,d) | …

Lire la suite

BtrLinux
Résumé de la politique de confidentialité

Ce site utilise des cookies afin que nous puissions vous fournir la meilleure expérience utilisateur possible. Les informations sur les cookies sont stockées dans votre navigateur et remplissent des fonctions telles que vous reconnaître lorsque vous revenez sur notre site Web et aider notre équipe à comprendre les sections du site que vous trouvez les plus intéressantes et utiles.