[PATCH] staging: pi433: Fix ISO-8859 encoded non-english comments

2017-12-07 Thread Simon Sandström
Some comments, like "without memcpy would be nice", are removed.
Other comments are just translated to english.
rf69.c is now plain ASCII.

Signed-off-by: Simon Sandström 
---
 drivers/staging/pi433/rf69.c | 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c
index 7140fa2ea592..5ec225024fe6 100644
--- a/drivers/staging/pi433/rf69.c
+++ b/drivers/staging/pi433/rf69.c
@@ -190,7 +190,6 @@ int rf69_set_bit_rate(struct spi_device *spi, u16 bitRate)
 int rf69_set_deviation(struct spi_device *spi, u32 deviation)
 {
int retval;
-// u32 f_max; TODO: Abh�ngigkeit von Bitrate beachten!!
u64 f_reg;
u64 f_step;
u8 msb;
@@ -201,7 +200,8 @@ int rf69_set_deviation(struct spi_device *spi, u32 
deviation)
dev_dbg(>dev, "set: deviation");
#endif
 
-   if (deviation < 600 || deviation > 50) { //TODO: Abh�ngigkeit von 
Bitrate beachten!!
+   // TODO: Dependency to bitrate
+   if (deviation < 600 || deviation > 50) {
dev_dbg(>dev, "set_deviation: illegal input param");
return -EINVAL;
}
@@ -298,7 +298,8 @@ int rf69_set_output_power_level(struct spi_device *spi, u8 
powerLevel)
dev_dbg(>dev, "set: power level");
#endif
 
-   powerLevel += 18; // TODO Abh�ngigkeit von PA0,1,2 setting
+   // TODO: Dependency to PA0,1,2 setting
+   powerLevel += 18;
 
// check input value
if (powerLevel > 0x1f) {
@@ -939,7 +940,7 @@ int rf69_read_fifo (struct spi_device *spi, u8 *buffer, 
unsigned int size)
dev_dbg(>dev, "%d - 0x%x\n", i, local_buffer[i+1]);
#endif
 
-   memcpy(buffer, _buffer[1], size);  // TODO: ohne memcopy w�re 
sch�ner
+   memcpy(buffer, _buffer[1], size);
 
return retval;
 }
@@ -960,7 +961,7 @@ int rf69_write_fifo(struct spi_device *spi, u8 *buffer, 
unsigned int size)
}
 
local_buffer[0] = spi_address;
-   memcpy(_buffer[1], buffer, size);  // TODO: ohne memcopy w�re 
sch�ner
+   memcpy(_buffer[1], buffer, size);
 
#ifdef DEBUG_FIFO_ACCESS
for (i = 0; i < size; i++)
-- 
2.11.0



[PATCH] staging: pi433: Fix ISO-8859 encoded non-english comments

2017-12-07 Thread Simon Sandström
Some comments, like "without memcpy would be nice", are removed.
Other comments are just translated to english.
rf69.c is now plain ASCII.

Signed-off-by: Simon Sandström 
---
 drivers/staging/pi433/rf69.c | 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c
index 7140fa2ea592..5ec225024fe6 100644
--- a/drivers/staging/pi433/rf69.c
+++ b/drivers/staging/pi433/rf69.c
@@ -190,7 +190,6 @@ int rf69_set_bit_rate(struct spi_device *spi, u16 bitRate)
 int rf69_set_deviation(struct spi_device *spi, u32 deviation)
 {
int retval;
-// u32 f_max; TODO: Abh�ngigkeit von Bitrate beachten!!
u64 f_reg;
u64 f_step;
u8 msb;
@@ -201,7 +200,8 @@ int rf69_set_deviation(struct spi_device *spi, u32 
deviation)
dev_dbg(>dev, "set: deviation");
#endif
 
-   if (deviation < 600 || deviation > 50) { //TODO: Abh�ngigkeit von 
Bitrate beachten!!
+   // TODO: Dependency to bitrate
+   if (deviation < 600 || deviation > 50) {
dev_dbg(>dev, "set_deviation: illegal input param");
return -EINVAL;
}
@@ -298,7 +298,8 @@ int rf69_set_output_power_level(struct spi_device *spi, u8 
powerLevel)
dev_dbg(>dev, "set: power level");
#endif
 
-   powerLevel += 18; // TODO Abh�ngigkeit von PA0,1,2 setting
+   // TODO: Dependency to PA0,1,2 setting
+   powerLevel += 18;
 
// check input value
if (powerLevel > 0x1f) {
@@ -939,7 +940,7 @@ int rf69_read_fifo (struct spi_device *spi, u8 *buffer, 
unsigned int size)
dev_dbg(>dev, "%d - 0x%x\n", i, local_buffer[i+1]);
#endif
 
-   memcpy(buffer, _buffer[1], size);  // TODO: ohne memcopy w�re 
sch�ner
+   memcpy(buffer, _buffer[1], size);
 
return retval;
 }
@@ -960,7 +961,7 @@ int rf69_write_fifo(struct spi_device *spi, u8 *buffer, 
unsigned int size)
}
 
local_buffer[0] = spi_address;
-   memcpy(_buffer[1], buffer, size);  // TODO: ohne memcopy w�re 
sch�ner
+   memcpy(_buffer[1], buffer, size);
 
#ifdef DEBUG_FIFO_ACCESS
for (i = 0; i < size; i++)
-- 
2.11.0