Articles de cet auteur
Mar 25 2013
sound: oss: uart401: Used kmemdup instead of kmalloc and memcpy
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Used kmemdup instead of replicating it’s behaviour with kmalloc followed by memcpy. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Takashi Iwai — sound/oss/uart401.c | 11 +++++++—- 1 file changed, 7 insertions(+), 4 deletions(-) diff –git a/sound/oss/uart401.c b/sound/oss/uart401.c index 8e514a6..5433c6f 100644 — a/sound/oss/uart401.c +++ b/sound/oss/uart401.c @@ -352,23 +352,26 @@ int …
Mar 25 2013
iio:trigger: Introduce iio_tigger_{set,get}_drvdata
Author: Lars-Peter Clausen <lars@metafoo.de> Introduce iio_tigger_{set,get}_drvdata which allows to attach driver specific data to a trigger. The functions wrap access to the triggers private_data field and all current users are updated to use iio_tigger_{set,get}_drvdata instead of directly accessing the private_data field. This is the first step towards removing the private_data field from the iio_trigger struct. …
Mar 19 2013
drivers: video: omap2: dss: Use PTR_RET function
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Use PTR_RET function instead of IS_ERR and PTR_ERR. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Tomi Valkeinen — drivers/video/omap2/dss/core.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-) diff –git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index f8779d4..60cc6fe 100644 — a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c @@ -181,10 +181,7 @@ int dss_debugfs_create_file(const char *name, void …
Mar 19 2013
drivers: platform: x86: Use PTR_RET function
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Used PTR_RET function instead of IS_ERR and PTR_ERR. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Matthew Garrett — drivers/platform/x86/samsung-q10.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-) diff –git a/drivers/platform/x86/samsung-q10.c b/drivers/platform/x86/samsung-q10.c index 5f77005..1a90b62 100644 — a/drivers/platform/x86/samsung-q10.c +++ b/drivers/platform/x86/samsung-q10.c @@ -176,10 +176,7 @@ static int __init samsungq10_init(void) samsungq10_probe, …
Mar 18 2013
regulator: fan53555: Use PTR_RET function
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Used PTR_RET function instead of IS_ERR and PTR_ERR. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Mark Brown — drivers/regulator/fan53555.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-) diff –git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 9165b0c..f0e1ae5 100644 — a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -219,9 +219,7 @@ static int fan53555_regulator_register(struct fan53555_device_info *di, …
Mar 16 2013
pata_octeon_cf: Use resource_size function
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Use resource_size function instead of explicit computation. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Jeff Garzik — drivers/ata/pata_octeon_cf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c index ff2e57f..e73bef3 100644 — a/drivers/ata/pata_octeon_cf.c +++ b/drivers/ata/pata_octeon_cf.c @@ -926,7 +926,7 @@ static int octeon_cf_probe(struct platform_device *pdev) goto …
Mar 16 2013
drivers: char: Use PTR_RET function
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Used PTR_RET function instead of IS_ERR and PTR_ERR. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Greg Kroah-Hartman — drivers/char/tile-srom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/char/tile-srom.c b/drivers/char/tile-srom.c index 3b22a60..2e2036e 100644 — a/drivers/char/tile-srom.c +++ b/drivers/char/tile-srom.c @@ -371,7 +371,7 @@ static int srom_setup_minor(struct srom_dev *srom, …
Mar 16 2013
Bluetooth: Use PTR_RET function
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Used PTR_RET function instead of IS_ERR and PTR_ERR. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Gustavo Padovan — net/bluetooth/hci_sysfs.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-) diff –git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index 23b4e24..ff38561 100644 — a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c @@ -590,10 +590,8 @@ int __init bt_sysfs_init(void) bt_debugfs = …
Mar 14 2013
spi/spidev: Use PTR_RET function
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Replaced calls to IS_ERR and PTR_ERR with PTR_RET function. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Mark Brown — drivers/spi/spidev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 2e0655d..911e9e0 100644 — a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -603,7 +603,7 @@ static int spidev_probe(struct spi_device …
Mar 14 2013
spi/fsl: Use PTR_RET function
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Replaced calls to IS_ERR and PTR_ERR with PTR_RET function. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Mark Brown — drivers/spi/spi-fsl-spi.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-) diff –git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index 086a9ee..1985ba3 100644 — a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c @@ -1134,9 +1134,7 @@ static int plat_mpc8xxx_spi_probe(struct platform_device …