[PATCH 05/10] staging/xgifb: Simplify XGI_SetSeqRegs

2013-02-03 Thread Peter Huewe
the assignment to SR1 into the loop, which I prefer to start at 0. Signed-off-by: Peter Huewe --- drivers/staging/xgifb/vb_setmode.c | 23 ++- drivers/staging/xgifb/vb_table.h |2 +- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/drivers/staging/xgifb

[PATCH 10/10] staging/xgifb: Simplify XGISetModeNew

2013-02-03 Thread Peter Huewe
This patch simplifies the code of XGISetModeNew by reordering the if/else if/case conditions when both branches are doing exactly the same. Signed-off-by: Peter Huewe --- drivers/staging/xgifb/vb_setmode.c | 18 +++--- 1 files changed, 3 insertions(+), 15 deletions(-) diff --git

[PATCH 08/10] staging/xgifb: Remove unnecessary bitshifts in XGI_SetCRT1ModeRegs

2013-02-03 Thread Peter Huewe
Since data can only be 0x, 0x0035 or 0x0048 we can simply skip the bit shifting and masking as data & 0xFF is always equal to data and data & 0xFF00 is always 0. So we simply use data and 0 directly and save the assignment. Signed-off-by: Peter Huewe --- drivers/staging/xgifb/vb_s

[PATCH 04/10] staging/xgifb: Fix return of uninitialized variable

2013-02-03 Thread Peter Huewe
patch initializes the variable in this case. Signed-off-by: Peter Huewe --- drivers/staging/xgifb/XGI_main_26.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index fa351f9..106abc8 100644 --- a/drivers/s

[PATCH 01/10] staging/xgifb: Simplify XGI_GetRatePtrCRT2

2013-02-03 Thread Peter Huewe
-of-bounds access I changed the mask from 0x0F to 0x07 and added a dummy value. Signed-off-by: Peter Huewe --- Please apply this series after my previous one [PATCH 1/6] staging/xgifb: Remove unused variables and dead assignments [PATCH 2/6] staging/xgifb: Remove unused variable [PATCH 3/6] staging

[PATCH] staging/comedi: Add VIRT_TO_BUS dependency to 'fix' build failure

2013-05-12 Thread Peter Huewe
If the platform does not provide virt_to_bus the ni_labpc.c driver fails to compile. In order not to break these builds we have to add a depends on CONFIG_VIRT_TO_BUS to the affected drivers. Reported-by: Geert Uytterhoeven Signed-off-by: Peter Huewe --- drivers/staging/comedi/Kconfig | 3

[PATCH v2] tpm: Add support for new Infineon I2C TPM (SLB 9645 TT 1.2 I2C)

2013-03-04 Thread Peter Huewe
e tree. tpm_i2c_infineon is also retained as a compatible id as a fallback to slb9635 protocol. The driver was tested on Beaglebone. Signed-off-by: Peter Huewe --- Please apply on top of "char/tpm: Convert struct i2c_msg initialization to C99 format" by Shubhrajyoti Datta .../d

[PATCH 01/15] tpm/tpm_ppi: Do not compare strcmp(a,b) == -1

2014-01-03 Thread Peter Huewe
From: Peter Huewe Depending on the implementation strcmp might return the difference between two strings not only -1,0,1 consequently if (strcmp (a,b) == -1) might lead to taking the wrong branch -> compare with < 0 instead, which in any case is more canonical. Cc: sta...@vger.kern

[PATCH 11/15] tpm: Create a tpm_class_ops structure and use it in the drivers

2014-01-03 Thread Peter Huewe
apply manually due to commit 191ffc6bde3 tpm/tpm_i2c_atmel: fix coccinelle warnings] Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm-interface.c| 10 -- drivers/char/tpm/tpm.h | 6 +++--- drivers/char/tpm/tpm_atmel.c| 2 +- drivers/char/tpm/tpm_i2c_atmel.c

[PATCH 10/15] tpm: Pull all driver sysfs code into tpm-sysfs.c

2014-01-03 Thread Peter Huewe
used to declare sysfs attributes with DEVICE_ATTR_RO and 'struct attribute *' Signed-off-by: Jason Gunthorpe [phuewe: had to apply the tpm_i2c_atmel part manually due to commit 191ffc6bde3fc tpm/tpm_i2c_atmel: fix coccinelle warnings] Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm

[PATCH 07/15] char: tpm: nuvoton: remove unused variable

2014-01-03 Thread Peter Huewe
From: Michal Nazarewicz “wait” wait queue is defined but never used in the function, thus it can be removed. Signed-off-by: Michal Nazarewicz Acked-by: Jason Gunthorpe Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm_i2c_nuvoton.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 08/15] tpm: Pull everything related to /dev/tpmX into tpm-dev.c

2014-01-03 Thread Peter Huewe
-by: Jason Gunthorpe Reviewed-by: Joel Schopp Reviewed-by: Ashley Lai [phuewe: tpm_dev_release is now used only in this file, thus the EXPORT_SYMBOL can be dropped and the function be marked as static. It has no other in-kernel users] Signed-off-by: Peter Huewe --- drivers/char/tpm/Makefile

[PATCH 09/15] tpm: Move sysfs functions from tpm-interface to tpm-sysfs

2014-01-03 Thread Peter Huewe
and is called tpm_pcr_read_dev. Signed-off-by: Jason Gunthorpe Signed-off-by: Peter Huewe --- drivers/char/tpm/Makefile| 2 +- drivers/char/tpm/tpm-interface.c | 275 +- drivers/char/tpm/tpm-sysfs.c | 281

[PATCH 06/15] tpm: MAINTAINERS: Cleanup TPM Maintainers file

2014-01-03 Thread Peter Huewe
From: Peter Huewe - removing stale/inactive maintainers - removing stale/outdated website - regrouped maintainers Signed-off-by: Peter Huewe --- MAINTAINERS | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index d5e4ff3..3924b10 100644

[PATCH 15/15] tpm/tpm-sysfs: active_show() can be static

2014-01-03 Thread Peter Huewe
From: Fengguang Wu so we make it static CC: Jason Gunthorpe CC: Peter Huewe Signed-off-by: Fengguang Wu Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm-sysfs.c b/drivers/char/tpm/tpm

[PATCH 05/15] tpm/tpm_i2c_atmel: fix coccinelle warnings

2014-01-03 Thread Peter Huewe
Gunthorpe CC: Peter Huewe Acked-by: Jason Gunthorpe Signed-off-by: Fengguang Wu Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm_i2c_atmel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm_i2c_atmel.c b/drivers/char/tpm/tpm_i2c_atmel.c index c3cd7fe

[PATCH 13/15] tpm: Make tpm-dev allocate a per-file structure

2014-01-03 Thread Peter Huewe
Gunthorpe Reviewed-by: Joel Schopp Reviewed-by: Ashley Lai Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm-dev.c | 100 ++--- drivers/char/tpm/tpm.h | 7 2 files changed, 57 insertions(+), 50 deletions(-) diff --git a/drivers/char/tpm/tpm

[PATCH 04/15] tpm/tpm_ibmvtpm: fix unreachable code warning (smatch warning)

2014-01-03 Thread Peter Huewe
From: Peter Huewe smatch complains: drivers/char/tpm/tpm_ibmvtpm.c:510 ibmvtpm_crq_process() info: ignoring unreachable code. -> The return is not necessary here, remove it Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm_ibmvtpm.c | 1 - 1 file changed, 1 deletion(-) diff --

[PATCH 14/15] tpm: tpm_tis: Fix compile problems with CONFIG_PM_SLEEP/CONFIG_PNP

2014-01-03 Thread Peter Huewe
legacy pm_ops' Also, unpon reviewing, the #ifdefs around tpm_tis_pm are not right, the first reference is protected, the second is not. tpm_tis_pm is always defined so we can drop the #ifdef. Signed-off-by: Jason Gunthorpe Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm_tis.c | 6 +- 1

[PATCH 03/15] tpm/tpm_i2c_stm_st33: Check return code of get_burstcount

2014-01-03 Thread Peter Huewe
From: Peter Huewe The 'get_burstcount' function can in some circumstances 'return -EBUSY' which in tpm_stm_i2c_send is stored in an 'u32 burstcnt' thus converting the signed value into an unsigned value, resulting in 'burstcnt' being huge. Changing the type to u32 only does not solve the problem

[PATCH 02/15] tpm/tpm_ppi: Check return value of acpi_get_name

2014-01-03 Thread Peter Huewe
From: Peter Huewe If status = acpi_get_name(handle, ACPI_FULL_PATHNAME, ); fails for whatever reason and does not return AE_OK if (strstr(buffer.pointer, context) != NULL) { does dereference a null pointer. -> Check the return value and return the status to the caller Found by coverity

[PATCH 12/15] tpm: Use the ops structure instead of a copy in tpm_vendor_specific

2014-01-03 Thread Peter Huewe
From: Jason Gunthorpe This builds on the last commit to use the ops structure in the core and reduce the size of tpm_vendor_specific. Signed-off-by: Jason Gunthorpe Reviewed-by: Joel Schopp Reviewed-by: Ashley Lai Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm-interface.c| 34

Aw: Re: [tpmdd-devel] TPM patches for 3.12

2013-10-21 Thread Peter Huewe
Hi Jason, Ashley, I just pushed the changes to my github tree https://github.com/PeterHuewe/linux-tpmdd/commits/for-james along with some additional changes: - before the rename I made tpm.c checkpatch clean ;) - I did some cleanup on the indention / white spaces of both Kconfig and bindings

[PATCH 1/2] tpm: Fix module name description in Kconfig for tpm_i2c_*

2013-10-21 Thread Peter Huewe
This patch changes the displayed module name from tpm_tis_i2c_infineon to its actual name tpm_i2c_infineon and from tpm_stm_st33_i2c to tpm_i2c_stm_st33 Signed-off-by: Peter Huewe --- drivers/char/tpm/Kconfig |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 2/2] tpm: use tabs instead of whitespaces in Kconfig

2013-10-21 Thread Peter Huewe
just like the other entries Signed-off-by: Peter Huewe --- drivers/char/tpm/Kconfig | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/char/tpm/Kconfig b/drivers/char/tpm/Kconfig index 4716af5..4dd4363 100644 --- a/drivers/char/tpm/Kconfig +++ b

Aw: Re: Re: [tpmdd-devel] TPM patches for 3.12

2013-10-22 Thread Peter Huewe
> Do you need to add your sign off lines on these patches? Added to all patches. Peter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

[PATCH] tpm: MAINTAINERS: Add myself as tpm maintainer

2013-10-22 Thread Peter Huewe
on behalf of myself, trying to be as vendor neutral as possible. Signed-off-by: Peter Huewe --- MAINTAINERS |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4fde706..936adb4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8475,6 +8475,7 @@ F

[PATCH 04/15] tpm: Store devname in the tpm_chip

2013-10-22 Thread Peter Huewe
From: Jason Gunthorpe Just put the memory directly in the chip structure, rather than in a 2nd dedicated kmalloc. Signed-off-by: Jason Gunthorpe Reviewed-by: Joel Schopp Reviewed-by: Peter Huewe Signed-off-by: Peter Huewe Acked-by: Ashley Lai --- drivers/char/tpm/tpm.c | 17

[PATCH 05/15] tpm: Use container_of to locate the tpm_chip in tpm_open

2013-10-22 Thread Peter Huewe
off-by: Jason Gunthorpe Reviewed-by: Joel Schopp Reviewed-by: Peter Huewe Acked-by: Ashley Lai Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm.c | 21 - 1 files changed, 4 insertions(+), 17 deletions(-) diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c in

[PATCH 02/15] tpm: ibmvtpm: Use %zd formatting for size_t format arguments

2013-10-22 Thread Peter Huewe
From: Jason Gunthorpe This suppresses compile warnings on 32 bit builds. Signed-off-by: Jason Gunthorpe Reviewed-by: Joel Schopp Reviewed-by: Peter Huewe Signed-off-by: Peter Huewe Acked-by: Ashley Lai --- drivers/char/tpm/tpm_ibmvtpm.c |4 ++-- 1 files changed, 2 insertions(+), 2

[PATCH 01/15] tpm: MAINTAINERS: Add myself as tpm maintainer

2013-10-22 Thread Peter Huewe
on behalf of myself, trying to be as vendor neutral as possible. Signed-off-by: Peter Huewe --- MAINTAINERS |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4fde706..936adb4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8475,6 +8475,7 @@ F

[PATCH 03/15] tpm atmel: Call request_region with the correct base

2013-10-22 Thread Peter Huewe
Reviewed-by: Joel Schopp Reviewed-by: Peter Huewe Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm_atmel.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/char/tpm/tpm_atmel.c b/drivers/char/tpm/tpm_atmel.c index 99d6820..c9a528d 100644 --- a/driver

[PATCH 06/15] tpm: Remove redundant dev_set_drvdata

2013-10-22 Thread Peter Huewe
Gunthorpe Reviewed-by: Joel Schopp Reviewed-by: Peter Huewe Acked-by: Ashley Lai Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm_i2c_infineon.c |2 -- drivers/char/tpm/tpm_i2c_stm_st33.c |2 -- drivers/char/tpm/xen-tpmfront.c |2 -- 3 files changed, 0 insertions(+), 6 deletions

[PATCH 07/15] tpm: st33: Remove chip->data_buffer access from this driver

2013-10-22 Thread Peter Huewe
rpe Reviewed-by: Joel Schopp Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm_i2c_stm_st33.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/drivers/char/tpm/tpm_i2c_stm_st33.c b/drivers/char/tpm/tpm_i2c_stm_st33.c index 1c68d93..b2390b6 100644 --- a/drivers/c

[PATCH 13/15] tpm: Add support for Atmel I2C TPMs

2013-10-22 Thread Peter Huewe
eg = <0x29>; }; Signed-off-by: Teddy Reed [jgg: revised and tested] Signed-off-by: Jason Gunthorpe [phuewe: minor whitespace changes] Signed-off-by: Peter Huewe --- .../devicetree/bindings/i2c/trivial-devices.txt|1 + drivers/char/tpm/Kconfig |9 + drivers/c

[PATCH 14/15] tpm: Fix module name description in Kconfig for tpm_i2c_infineon

2013-10-22 Thread Peter Huewe
This patch changes the displayed module name from tpm_tis_i2c_infineon to its actual name tpm_i2c_infineon. Signed-off-by: Peter Huewe --- drivers/char/tpm/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/char/tpm/Kconfig b/drivers/char/tpm/Kconfig index

[PATCH 15/15] tpm: use tabs instead of whitespaces in Kconfig

2013-10-22 Thread Peter Huewe
just like the other entries Signed-off-by: Peter Huewe --- drivers/char/tpm/Kconfig | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/char/tpm/Kconfig b/drivers/char/tpm/Kconfig index dd7a82b..1a65838 100644 --- a/drivers/char/tpm/Kconfig +++ b

[PATCH 11/15] tpm: Merge the tpm-bios module with tpm.o

2013-10-22 Thread Peter Huewe
-by: Jason Gunthorpe Signed-off-by: Peter Huewe --- drivers/char/tpm/Makefile |7 +++ drivers/char/tpm/tpm_eventlog.c |3 --- drivers/char/tpm/tpm_ppi.c |4 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/char/tpm/Makefile b/drivers/char/tpm

[PATCH 12/15] tpm: Add support for the Nuvoton NPCT501 I2C TPM

2013-10-22 Thread Peter Huewe
orpe [phuewe: minor whitespace changes, fixed module name in kconfig] Signed-off-by: Peter Huewe --- .../devicetree/bindings/i2c/trivial-devices.txt|2 + drivers/char/tpm/Kconfig | 10 + drivers/char/tpm/Makefile |1 + dri

[PATCH 08/15] tpm: Remove tpm_show_caps_1_2

2013-10-22 Thread Peter Huewe
auto-detects what interface the TPM supports at run-time. Signed-off-by: Jason Gunthorpe Reviewed-by: Joel Schopp Reviewed-by: Peter Huewe Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm.c | 56 ++ drivers/char/tpm/tpm.h |2

[PATCH 09/15] tpm: cleanup checkpatch warnings

2013-10-22 Thread Peter Huewe
ors, 7 warnings, 1554 lines checked Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm.c | 44 ++-- 1 files changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index 72f0c68..6ae41d3 100644 --- a/dr

Aw: Re: [tpmdd-devel] [PATCH] tpm: MAINTAINERS: Add myself as tpm maintainer

2013-10-22 Thread Peter Huewe
Hi Joel, > Gesendet: Dienstag, 22. Oktober 2013 um 19:55 Uhr > Von: "Joel Schopp" > I have no objection to you adding yourself here. I do think we should > probably also cut the list down at the same time as I don't think all > the listed maintainers are active anymore. Also, the list is

Aw: Re: [tpmdd-devel] [PATCH] tpm: MAINTAINERS: Add myself as tpm maintainer

2013-10-23 Thread Peter Huewe
Hi Rajiv, > Long time, no see.. Good to see you again. > Peter, thank you a ton for stepping in. > Since you're of course the owner (yes, we need such figure), > let me know if my help is desirable or if you think there isn't > additional bandwidth needed to maintain it. Thanks for the offer - I

Aw: Re: [tpmdd-devel] [PATCH] tpm: MAINTAINERS: Add myself as tpm maintainer

2013-10-24 Thread Peter Huewe
Hi Jason, > > Speaking of which, has anyone looked at the rest of my series?? Shall > > I repost it? > Jason Gunthorpe: > tpm: Pull everything related to /dev/tpmX into tpm-dev.c > tpm: Pull everything related to sysfs into tpm-sysfs.c > tpm: Create a tpm_class_ops structure and use it in the

[PATCH] tpm/tpm_i2c_infineon.c: Add OF attributes type and name to the of_device_id table entries

2013-03-04 Thread Peter Huewe
As the subject says. It's probably a good idea to have these fields populated. Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm_i2c_infineon.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm

[PATCH] tpm/tpm_i2c_infineon: Add small comment about return value of __i2c_transfer

2013-03-04 Thread Peter Huewe
Kent Yoder indicated that the code might be a bit clearer with a comment here, so this patch adds a small explanation of the code. CC: Kent Yoder Signed-off-by: Peter Huewe --- drivers/char/tpm/tpm_i2c_infineon.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/char/tpm

[PATCH] tpm: fix regression caused by section type conflict of tpm_dev_release() in ppc builds

2013-05-27 Thread Peter Huewe
The 8119807 commit reintroduced a regression (error: __ksymtab_tpm_dev_release causes a section type conflict) that was fixed by commit cbb2ed4. Fix it for good by adding the prototype to tpm.h so sparse doesn't complain about it anymore. Reported-by: Tony Camuso Signed-off-by: Peter Huewe

[PATCH] mfd/adp5520: Use module_i2c_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_i2c_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe --- drivers/mfd/adp5520.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/mfd/adp5520.c

[PATCH] usb/misc/usb3503: Use module_i2c_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_i2c_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe --- drivers/usb/misc/usb3503.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/usb

[PATCH] video/matrox/matroxfb_maven: Use module_i2c_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_i2c_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe --- drivers/video/matrox/matroxfb_maven.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH] powerpc/platforms/83xx/mcu_mpc8349emitx: Use module_i2c_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_i2c_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe --- arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff

[PATCH] net/can/mcp251x: Use module_spi_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_spi_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe --- drivers/net/can/mcp251x.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/can

[PATCH] net/wireless/ti/wlcore/spi: Use module_spi_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_spi_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe --- drivers/net/wireless/ti/wlcore/spi.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git

[PATCH] net/ieee802154/mrf24j40: Use module_spi_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_spi_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe --- drivers/net/ieee802154/mrf24j40.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers

[PATCH] net/ethernet/micrel/ks8851.c: Use module_spi_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_spi_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe --- drivers/net/ethernet/micrel/ks8851.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git

[PATCH v2] video/matrox/matroxfb_maven: Use module_i2c_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_i2c_driver instead of calling register and unregister in the otherwise empty init/exit functions. Also removed a useless comment as suggested by Jean Delvare Signed-off-by: Peter Huewe Reviewed-by: Jean Delvare --- drivers/video/matrox/matroxfb_maven.c

[PATCH] arm/mach-u300/dummyspichip: Use module_spi_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_spi_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- arch/arm/mach-u300/dummyspichip.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/arch

[PATCH] net/usb/r8152: Use module_usb_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_usb_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/usb/r8152.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/usb

[PATCH 1/5] uio/uio_aec: Use module_pci_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/uio/uio_aec.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/uio

[PATCH 2/5] uio/uio_cif: Use module_pci_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/uio/uio_cif.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/uio

[PATCH 3/5] uio/uio_netx: Use module_pci_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/uio/uio_netx.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/uio

[PATCH 5/5] uio/uio_pci_generic: Use module_pci_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. It removes a pr_info showing some details about the driver, but these infos can also be retrieved by using modinfo. Signed-off-by: Peter Huewe --- drivers

[PATCH 4/5] uio/uio_sercos3: Use module_pci_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/uio/uio_sercos3.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/uio

[PATCH] uwb/whci: Use module_pci_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/uwb/whci.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/uwb/whci.c b

[PATCH] parisc/superio: Use module_pci_driver to register driver

2013-05-20 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/parisc/superio.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/parisc

[PATCH v2] uio/uio_pci_generic: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
to be changed in order to prevent a build failure. Signed-off-by: Peter Huewe --- Sorry for the build failure. drivers/uio/uio_pci_generic.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/uio/uio_pci_generic.c b/drivers/uio/uio_pci_generic.c index

[PATCH 1/6] scsi/a100u2w: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/scsi/a100u2w.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/scsi

[PATCH 2/6] scsi/hpsa: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/scsi/hpsa.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/scsi/hpsa.c b

[PATCH 6/6] scsi/dmx3191d: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/scsi/dmx3191d.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/scsi

[PATCH 5/6] scsi/initio: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/scsi/initio.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/scsi

[PATCH 4/6] scsi/mvumi: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/scsi/mvumi.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/drivers/scsi

[PATCH 3/6] scsi/dc395x: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/scsi/dc395x.c | 25 + 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/drivers

[PATCH 01/19] net/ethernet/silan/sc92031: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- This time against net-next and compile tested on x86 with allmodconfig. Sorry for the broken/duplicated patches yesterday

[PATCH 02/19] net/ethernet/atheros/atl1c/atl1c_main: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 25 + 1 file changed, 1 insertion(+), 24 deletions

[PATCH 03/19] net/ethernet/atheros/atl1e/atl1e_main: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 25 + 1 file changed, 1 insertion(+), 24 deletions

[PATCH 04/19] net/ethernet/atheros/atlx/atl1: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/atheros/atlx/atl1.c | 27 ++- 1 file changed, 2 insertions(+), 25 deletions

[PATCH 05/19] net/ethernet/sis/sis190: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/sis/sis190.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers

[PATCH 06/19] net/ethernet/dec/tulip/xircom_cb: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/dec/tulip/xircom_cb.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git

[PATCH 07/19] net/ethernet/toshiba/tc35815: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/toshiba/tc35815.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git

[PATCH 08/19] net/ethernet/icplus/ipg: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/icplus/ipg.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers

[PATCH 09/19] net/ethernet/alteon/acenic: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/alteon/acenic.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git

[PATCH 10/19] net/ethernet/broadcom/bnx2: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/broadcom/bnx2.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git

[PATCH 13/19] net/ethernet/qlogic/qlge/qlge_main: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/qlogic/qlge/qlge_main.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH 14/19] net/ethernet/sun/sungem: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/sun/sungem.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers

[PATCH 15/19] net/ethernet/amd/amd8111e: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/amd/amd8111e.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH 11/19] net/ethernet/broadcom/tg3: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/broadcom/tg3.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH 12/19] net/ethernet/sgi/ioc3-eth: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/ethernet/sgi/ioc3-eth.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git

[PATCH 16/19] net/hippi/rrunner: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/hippi/rrunner.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/net

[PATCH 17/19] net/fddi/skfp/skfddi: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/net/fddi/skfp/skfddi.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/net

[PATCH 19/19] net/ethernet/nvidia/forcedeth: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. The name of the pci_driver struct had to be changed in order to prevent a build failure. Signed-off-by: Peter Huewe --- drivers/net/ethernet/nvidia

[PATCH 18/19] net/ethernet/chelsio/cxgb/cxgb2: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. The name of the pci_driver struct had to be changed in order to prevent a build failure. Signed-off-by: Peter Huewe --- drivers/net/ethernet/chelsio/cxgb

[PATCH 2/7] staging/ozwpan: Fix sparse warning Using plain integer as NULL pointer

2013-02-14 Thread Peter Huewe
This patch fixes the warning "Using plain integer as NULL pointer", generated by sparse, by replacing the offending 0s with NULL. Signed-off-by: Peter Huewe --- drivers/staging/ozwpan/ozusbsvc1.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-)

[PATCH 6/7] staging/ozwpan: Fix sparse warning Using plain integer as NULL pointer

2013-02-14 Thread Peter Huewe
This patch fixes the warning "Using plain integer as NULL pointer", generated by sparse, by replacing the offending 0s with NULL. Signed-off-by: Peter Huewe --- drivers/staging/ozwpan/ozusbsvc.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-)

[PATCH 7/7] staging/ozwpan: Fix sparse warning Using plain integer as NULL pointer

2013-02-14 Thread Peter Huewe
This patch fixes the warning "Using plain integer as NULL pointer", generated by sparse, by replacing the offending 0s with NULL. Signed-off-by: Peter Huewe --- drivers/staging/ozwpan/ozhcd.c | 135 1 files changed, 68 insertions(+), 67

[PATCH 4/7] staging/ozwpan: Fix sparse warning Using plain integer as NULL pointer

2013-02-14 Thread Peter Huewe
This patch fixes the warning "Using plain integer as NULL pointer", generated by sparse, by replacing the offending 0s with NULL. Signed-off-by: Peter Huewe --- drivers/staging/ozwpan/ozproto.c | 78 +++--- 1 files changed, 39 insertions(+), 39

[PATCH 3/7] staging/ozwpan: Fix sparse warning Using plain integer as NULL pointer

2013-02-14 Thread Peter Huewe
This patch fixes the warning "Using plain integer as NULL pointer", generated by sparse, by replacing the offending 0s with NULL. Signed-off-by: Peter Huewe --- drivers/staging/ozwpan/ozeltbuf.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 5/7] staging/ozwpan: Fix sparse warning Using plain integer as NULL pointer

2013-02-14 Thread Peter Huewe
This patch fixes the warning "Using plain integer as NULL pointer", generated by sparse, by replacing the offending 0s with NULL. Signed-off-by: Peter Huewe --- drivers/staging/ozwpan/ozcdev.c | 24 1 files changed, 12 insertions(+), 12 deletions(-)

[PATCH v2] staging/comedi: Remove if(); statement without effect

2013-02-15 Thread Peter Huewe
Smatch warns about: staging/comedi/drivers/cb_pcidas64.c:3304 prep_ao_dma() warn: if(); So the check currently does nothing and can be removed, as indicated by Ian. Signed-off-by: Peter Huewe --- v1 was staging/comedi: Fix if(); by adding proper code which was unfortunately wrong. drivers

[PATCH v2] staging/panel: Mark local functions/structs static and add const if applicable (fix sparse warnings)

2013-02-15 Thread Peter Huewe
marked as const. CC: David Howells Signed-off-by: Peter Huewe --- v2: Included feedback about const by David Howells. Thanks David. drivers/staging/panel/panel.c | 31 --- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/staging/panel

[PATCH 1/7 v2] staging/ozwpan: Fix NULL vs zero in ozpd.c (sparse warning)

2013-02-15 Thread Peter Huewe
This patch fixes the warning "Using plain integer as NULL pointer", generated by sparse, by replacing the offending 0s with NULL. If the initialization with NULL was unnecessary (due to unconditional assignment before first use) it was removed. Signed-off-by: Peter Huewe --- drive

<    1   2   3   4   5   6   7   8   >