Author: Lars-Peter Clausen <lars@metafoo.de> Currently we use two different naming schemes in the IIO API, iio_verb_object and iio_object_verb. E.g iio_device_register and iio_allocate_device. This patches renames instances of the later to the former. The patch also renames allocate to alloc as this seems to be the preferred form throughout the kernel. In particular the following renames …
Catégorie : Linux
Apr 25 2012
dmaengine: Use dma_sg_len(sg) instead of sg->length
Author: Lars-Peter Clausen <lars@metafoo.de> sg->length may or may not contain the length of the dma region to transfer, depending on the architecture – dma_sg_len(sg) always will though. For the architectures which use the drivers modified by this patch it probably is the case that sg->length contains the dma transfer length. But to be consistent and …
Apr 25 2012
dmaengine: Use sg_dma_address instead of sg_phys
Author: Lars-Peter Clausen <lars@metafoo.de> dmaengine drivers should always use sg_dma_address instead of sg_phys to get the addresses for the transfer from a sg element. To quote Russel King: sg_phys(sg) of course has nothing to do with DMA addresses. It’s the physical address _to the CPU_ of the memory associated with the scatterlist entry. That may, …
Apr 11 2012
staging: replace open-coded ARRAY_SIZEs
Author: Jim Cromie <jim.cromie@gmail.com> spatch http://coccinelle.lip6.fr/rules/array.cocci did these. Signed-off-by: Jim Cromie Signed-off-by: Greg Kroah-Hartman — drivers/staging/bcm/DDRInit.c | 26 +++++++++++++————- drivers/staging/media/as102/as102_usb_drv.c | 5 ++— drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 4 ++– drivers/staging/rtl8192e/rtllib_wx.c | 2 +- drivers/staging/rtl8192u/r8192U_wx.c | 4 ++– drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 4 ++– drivers/staging/vt6655/wpa.c | 4 ++– drivers/staging/vt6656/wpa.c | 4 ++– 8 files changed, 26 insertions(+), 27 deletions(-) …
Apr 11 2012
mfd: Remove redundant spi driver bus initialization
Author: Lars-Peter Clausen <lars@metafoo.de> In ancient times it was necessary to manually initialize the bus field of an spi_driver to spi_bus_type. These days this is done in spi_driver_register() so we can drop the manual assignment. The patch was generated using the following coccinelle semantic patch: // @@ identifier _driver; @@ struct spi_driver _driver = { …
Apr 10 2012
net: Remove redundant spi driver bus initialization
Author: Lars-Peter Clausen <lars@metafoo.de> In ancient times it was necessary to manually initialize the bus field of an spi_driver to spi_bus_type. These days this is done in spi_driver_register() so we can drop the manual assignment. The patch was generated using the following coccinelle semantic patch: // @@ identifier _driver; @@ struct spi_driver _driver = { …
Apr 02 2012
net:phy:marvell: remove unnecessary code
Author: Srinivas Kandagatla <srinivas.kandagatla@st.com> Compile tested. remove unnecessary code that matches this coccinelle pattern ret = phy_write(x, y , z) if (ret < 0) return ret; return 0; As phy_write returns error code, we dont need to do not need extra check before returning. Signed-off-by: Srinivas Kandagatla Signed-off-by: David S. Miller --- drivers/net/phy/marvell.c | 18 …
Apr 02 2012
net:phy:davicom: remove unnecessary code
Author: Srinivas Kandagatla <srinivas.kandagatla@st.com> Compile tested. remove unnecessary code that matches this coccinelle pattern ret = phy_write(x, y , z) if (ret < 0) return ret; return 0; As phy_write returns error code, we dont need to do not need extra check before returning. Signed-off-by: Srinivas Kandagatla Signed-off-by: David S. Miller --- drivers/net/phy/davicom.c | 7 …
Apr 02 2012
net:phy:bcm63xx: remove unnecessary code
Author: Srinivas Kandagatla <srinivas.kandagatla@st.com> Compile tested. remove unnecessary code that matches this coccinelle pattern ret = phy_write(x, y , z) if (ret < 0) return ret; return 0; As phy_write returns error code, we dont need to do not need extra check before returning. Signed-off-by: Srinivas Kandagatla Signed-off-by: David S. Miller --- drivers/net/phy/bcm63xx.c | 5 …
Mar 14 2012
MIPS: ath79: Use kmemdup rather than duplicating its implementation
Author: Thomas Meyer <thomas@m3y3r.de> The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: Gabor Juhos Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3483/ Signed-off-by: Ralf Baechle — arch/mips/ath79/dev-gpio-buttons.c | 4 +— arch/mips/ath79/dev-leds-gpio.c | 4 +— 2 files changed, 2 insertions(+), 6 deletions(-) diff –git a/arch/mips/ath79/dev-gpio-buttons.c b/arch/mips/ath79/dev-gpio-buttons.c index 4b0168a..366b35f 100644 — a/arch/mips/ath79/dev-gpio-buttons.c +++ …