[PATCH] staging: pi433: remove some macros, introduce some inline functions

2017-08-02 Thread Wolf Entwicklungen
From: Marcus Wolf According to the proposal of Walter Harms, I removed some macros and added some inline functions. Since I used a bit more intelligent interface, this enhances readability and reduces problems with checkpatch.pl at the same time. In addition

[PATCH] staging: pi433: remove some macros, introduce some inline functions

2017-08-02 Thread Wolf Entwicklungen
From: Marcus Wolf According to the proposal of Walter Harms, I removed some macros and added some inline functions. Since I used a bit more intelligent interface, this enhances readability and reduces problems with checkpatch.pl at the same time. In addition obsolete debug ifdefs were removed.

Re: [PATCH] staging: pi433: remove some macros, introduce some inline functions

2017-08-02 Thread Wolf Entwicklungen
(my patch, concerning the bit shifting, we talked about last week and an other patch fixing an issue with a bit inversion). Hope it helps :-) Marcus Am Mi, 2.08.2017, 13:10 schrieb Wolf Entwicklungen: > According to the proposal of Walter Harms, I removed some macros > and added some

Re: [PATCH] staging: pi433: remove some macros, introduce some inline functions

2017-08-02 Thread Wolf Entwicklungen
(my patch, concerning the bit shifting, we talked about last week and an other patch fixing an issue with a bit inversion). Hope it helps :-) Marcus Am Mi, 2.08.2017, 13:10 schrieb Wolf Entwicklungen: > According to the proposal of Walter Harms, I removed some macros > and added some

[PATCH] staging: pi433: remove some macros, introduce some inline functions

2017-08-02 Thread Wolf Entwicklungen
According to the proposal of Walter Harms, I removed some macros and added some inline functions. Since I used a bit more intelligent interface, this enhances readability and reduces problems with checkpatch.pl at the same time. In addition obsolete debug ifdefs were removed. Signed-off-by:

[PATCH] staging: pi433: remove some macros, introduce some inline functions

2017-08-02 Thread Wolf Entwicklungen
According to the proposal of Walter Harms, I removed some macros and added some inline functions. Since I used a bit more intelligent interface, this enhances readability and reduces problems with checkpatch.pl at the same time. In addition obsolete debug ifdefs were removed. Signed-off-by:

Re: [PATCH 1/5] staging/pi433:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Hi Dan, I offered Greg to have an eye on the patches, that were submitted. He asked me to reply to those patches, I had a look for, with the Reviewed-by tag. Now I am a bit unsure, what I should do. Since I am interested in, I for sure will read every patch. It's just a little thing, to reply

Re: [PATCH 1/5] staging/pi433:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Hi Dan, I offered Greg to have an eye on the patches, that were submitted. He asked me to reply to those patches, I had a look for, with the Reviewed-by tag. Now I am a bit unsure, what I should do. Since I am interested in, I for sure will read every patch. It's just a little thing, to reply

Re: [PATCH] staging: pi433: reduce stack size in tx thread

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Maybe tx_buffer is a bit more clearly then buffer. Thanks, Marcus Am Mo, 31.07.2017, 10:57 schrieb Arnd Bergmann: > Putting a 900 byte array on the stack is a clearly too much in the > kernel, and sometimes results in warnings like: > >

Re: [PATCH] staging: pi433: reduce stack size in tx thread

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Maybe tx_buffer is a bit more clearly then buffer. Thanks, Marcus Am Mo, 31.07.2017, 10:57 schrieb Arnd Bergmann: > Putting a 900 byte array on the stack is a clearly too much in the > kernel, and sometimes results in warnings like: > >

Re: [PATCH] staging/pi433: Solved some coding style issues in pi433_if.c

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Thank you :-) Am Di, 1.08.2017, 07:09 schrieb Rishabh Hardas: > From: Rishabh Hardas > > Solved a few coding style issues, used BIT macro to set MINORBITS. > > Signed-off-by: Rishabh Hardas

Re: [PATCH] staging/pi433: Solved some coding style issues in pi433_if.c

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Thank you :-) Am Di, 1.08.2017, 07:09 schrieb Rishabh Hardas: > From: Rishabh Hardas > > Solved a few coding style issues, used BIT macro to set MINORBITS. > > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/pi433_if.c | 24 ++-- > 1

Re: [PATCH 5/5] staging/pi433/rf69_enum.h:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69_enum.h | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git

Re: [PATCH 5/5] staging/pi433/rf69_enum.h:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69_enum.h | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/staging/pi433/rf69_enum.h >

Re: [PATCH 4/5] staging/pi433/rf69.c:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Maybe lnaGain should move to lna_gain instead of lnagain (also applies to the headers...) Marcus Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- >

Re: [PATCH 4/5] staging/pi433/rf69.c:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Maybe lnaGain should move to lna_gain instead of lnagain (also applies to the headers...) Marcus Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69.c | 26 +- > 1 file changed,

Re: [PATCH 1/5] staging/pi433:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Just reviewed, not tested. As far as I can see, there is no technical issue with this patch. I prefer the names of the enumerations in camel case, because then they are a bit shorter. If camel case is unwanted, for sure we need that change.

Re: [PATCH 1/5] staging/pi433:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Just reviewed, not tested. As far as I can see, there is no technical issue with this patch. I prefer the names of the enumerations in camel case, because then they are a bit shorter. If camel case is unwanted, for sure we need that change. Please mind the allignment.

Re: [PATCH 3/5] staging/pi433/rf69.h:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69.h | 26 +- > 1 file changed, 13 insertions(+), 13 deletions(-) > > diff

Re: [PATCH 3/5] staging/pi433/rf69.h:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69.h | 26 +- > 1 file changed, 13 insertions(+), 13 deletions(-) > > diff --git a/drivers/staging/pi433/rf69.h

Re: [PATCH 2/5] staging/pi433/pi433_if.c:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/pi433_if.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH 2/5] staging/pi433/pi433_if.c:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/pi433_if.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/pi433/pi433_if.c > b/drivers/staging/pi433/pi433_if.c

Re: [PATCH] staging/pi433: Solved some coding style issues in pi433_if.c

2017-07-31 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Thank you Rishabh! Marcus Am Mo, 31.07.2017, 12:21 schrieb RishabhHardas: > From: RishabhHardas > > Solved a few coding style issues, used BIT macro to set MINORBITS. > > Signed-off-by: RishabhHardas

Re: [PATCH] staging/pi433: Solved some coding style issues in pi433_if.c

2017-07-31 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Thank you Rishabh! Marcus Am Mo, 31.07.2017, 12:21 schrieb RishabhHardas: > From: RishabhHardas > > Solved a few coding style issues, used BIT macro to set MINORBITS. > > Signed-off-by: RishabhHardas > --- > drivers/staging/pi433/pi433_if.c | 24

Re: [PATCH -next] staging: pi433: depends on SPI

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Do, 20.07.2017, 01:58 schrieb Randy Dunlap: > From: Randy Dunlap > > The pi433 driver uses SPI interfaces so it should depend on SPI. > Also, the "default n" can be removed since that is already the > default. > >

Re: [PATCH -next] staging: pi433: depends on SPI

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Do, 20.07.2017, 01:58 schrieb Randy Dunlap: > From: Randy Dunlap > > The pi433 driver uses SPI interfaces so it should depend on SPI. > Also, the "default n" can be removed since that is already the > default. > > Fixes these build errors when SPI is not enabled: > >

Re: [PATCH 2/2] Staging: pi433: check error after kthread_run()

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Tested-by: Marcus Wolf Am So, 16.07.2017, 16:48 schrieb Joseph Wright: > Error should be checked with IS_ERR after calling kthread_run() > instead of comparing the returned pointer to an int. > > Found by sparse

Re: [PATCH 2/2] Staging: pi433: check error after kthread_run()

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Tested-by: Marcus Wolf Am So, 16.07.2017, 16:48 schrieb Joseph Wright: > Error should be checked with IS_ERR after calling kthread_run() > instead of comparing the returned pointer to an int. > > Found by sparse warning: > > incompatible types for operation (<) >

Re: [PATCH 1/2] Staging: pi433: declare functions static

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am So, 16.07.2017, 16:48 schrieb Joseph Wright: > Declare functions static to fix sparse warnings: > > warning: symbol 'pi433_receive' was not declared. Should it be static? > warning: symbol 'pi433_tx_thread' was not declared. Should it be

Re: [PATCH 1/2] Staging: pi433: declare functions static

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am So, 16.07.2017, 16:48 schrieb Joseph Wright: > Declare functions static to fix sparse warnings: > > warning: symbol 'pi433_receive' was not declared. Should it be static? > warning: symbol 'pi433_tx_thread' was not declared. Should it be static? > > Signed-off-by:

Re: [PATCH 2/3][staging-next] staging: pi433: Make functions rf69_set_bandwidth_intern static

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 18.07.2017, 15:03 schrieb Colin King: > From: Colin Ian King > > The function rf69_set_bandwidth_intern is local to the source > and do not need to be in global scope, so make it static. Also > break overly

Re: [PATCH 2/3][staging-next] staging: pi433: Make functions rf69_set_bandwidth_intern static

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 18.07.2017, 15:03 schrieb Colin King: > From: Colin Ian King > > The function rf69_set_bandwidth_intern is local to the source > and do not need to be in global scope, so make it static. Also > break overly wide line. > > Cleans up sparse warning: > symbol

Re: [PATCH 1/3][staging-next] staging: pi433: Make a couple of functions static

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 18.07.2017, 15:03 schrieb Colin King: > From: Colin Ian King > > The functions pi433_receive and pi433_tx_thread are local to the source > and do not need to be in global scope, so make them static > > Cleans

Re: [PATCH 1/3][staging-next] staging: pi433: Make a couple of functions static

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 18.07.2017, 15:03 schrieb Colin King: > From: Colin Ian King > > The functions pi433_receive and pi433_tx_thread are local to the source > and do not need to be in global scope, so make them static > > Cleans up sparse warnings: > symbol 'pi433_receive' was not

Re: [PATCH 3/3][staging-next] staging: pi433: fix thread_run failure check

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Tested-by: Marcus Wolf Am Di, 18.07.2017, 15:04 schrieb Colin King: > From: Colin Ian King > > The check for thread_run failure is incorrect, use IS_ERR instead. > > Cleans up sparse

Re: [PATCH 3/3][staging-next] staging: pi433: fix thread_run failure check

2017-07-20 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Tested-by: Marcus Wolf Am Di, 18.07.2017, 15:04 schrieb Colin King: > From: Colin Ian King > > The check for thread_run failure is incorrect, use IS_ERR instead. > > Cleans up sparse error message: > "error: incompatible types for operation (<)" > > Fixes: 874bcba65f9a

Re: [PATCH 1/1][staging-next] staging: pi433: Make functions rf69_set_dc_cut_off_frequency_intern static

2017-07-20 Thread Wolf Entwicklungen
Declare rf69_set_dc_cut_off_frequency_intern as static since it is used internaly only Fixes: 874bcba65f9a ("staging: pi433: New driver") Signed-off-by: Marcus Wolf diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c ---

Re: [PATCH 1/1][staging-next] staging: pi433: Make functions rf69_set_dc_cut_off_frequency_intern static

2017-07-20 Thread Wolf Entwicklungen
Declare rf69_set_dc_cut_off_frequency_intern as static since it is used internaly only Fixes: 874bcba65f9a ("staging: pi433: New driver") Signed-off-by: Marcus Wolf diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c --- a/drivers/staging/pi433/rf69.c +++

[PATCH 1/1] drivers/staging/pi433: New driver

2017-07-16 Thread Wolf Entwicklungen
side of this + * driver, you'll find an abstraction of the rf69 chip. + * + * If needed, this driver could be extended, to also support other + * devices, basing on HopeRfs rf69. + * + * The driver can also be extended, to support other modules of + * HopeRf with a similar interace - e. g. RFM69HCW, R

[PATCH 1/1] drivers/staging/pi433: New driver

2017-07-16 Thread Wolf Entwicklungen
null +++ b/drivers/staging/pi433/pi433_if.c @@ -0,0 +1,1314 @@ +/* + * userspace interface for pi433 radio module + * + * Pi433 is a 433MHz radio module for the Raspberry Pi. + * It is based on the HopeRf Module RFM69CW. Therefore inside of this + * driver, you'll find an abstraction of the rf69

Re: Submit of a driver for Pi433 - a radio module for Raspberry Pi

2017-07-15 Thread Wolf Entwicklungen
-0,0 +1,1315 @@ +/* + * userspace interface for pi433 radio module + * + * Pi433 is a 433MHz radio module for the Raspberry Pi. + * It is based on the HopeRf Module RFM69CW. Therefore inside of this + * driver, you'll find an abstraction of the rf69 chip. + * + * If needed, this driver could be ex

Re: Submit of a driver for Pi433 - a radio module for Raspberry Pi

2017-07-15 Thread Wolf Entwicklungen
odule for the Raspberry Pi. + * It is based on the HopeRf Module RFM69CW. Therefore inside of this + * driver, you'll find an abstraction of the rf69 chip. + * + * If needed, this driver could be extended, to also support other + * devices, basing on HopeRfs rf69. + * + * The driver can also be