[PATCH] Staging: fbtft: fix space errors

2015-02-22 Thread Matteo Semenzato
From: Matteo Semenzato 

This patch fixes the following errors:
ERROR: space required after that ','
ERROR: trailing whitespace

Signed-off-by: Matteo Semenzato 
---
 drivers/staging/fbtft/fb_upd161704.c | 90 ++--
 1 file changed, 45 insertions(+), 45 deletions(-)

diff --git a/drivers/staging/fbtft/fb_upd161704.c 
b/drivers/staging/fbtft/fb_upd161704.c
index fff57b3..176c210 100644
--- a/drivers/staging/fbtft/fb_upd161704.c
+++ b/drivers/staging/fbtft/fb_upd161704.c
@@ -47,84 +47,84 @@ static int init_display(struct fbtft_par *par)
/* Initialization sequence from Lib_UTFT */
 
/* register reset */
-   write_reg(par, 0x0003,0x0001);  /* Soft reset */
+   write_reg(par, 0x0003, 0x0001); /* Soft reset */
 
/* oscillator start */
-   write_reg(par, 0x003A,0x0001);  /*Oscillator 0: stop, 1: operation */
+   write_reg(par, 0x003A, 0x0001); /*Oscillator 0: stop, 1: operation */
udelay(100);
 
/* y-setting */
-   write_reg(par, 0x0024,0x007B);  /* amplitude setting */
+   write_reg(par, 0x0024, 0x007B); /* amplitude setting */
udelay(10);
-   write_reg(par, 0x0025,0x003B);  /* amplitude setting */
-   write_reg(par, 0x0026,0x0034);  /* amplitude setting */
+   write_reg(par, 0x0025, 0x003B); /* amplitude setting */
+   write_reg(par, 0x0026, 0x0034); /* amplitude setting */
udelay(10);
-   write_reg(par, 0x0027,0x0004);  /* amplitude setting */
-   write_reg(par, 0x0052,0x0025);  /* circuit setting 1 */
+   write_reg(par, 0x0027, 0x0004); /* amplitude setting */
+   write_reg(par, 0x0052, 0x0025); /* circuit setting 1 */
udelay(10);
-   write_reg(par, 0x0053,0x0033);  /* circuit setting 2 */
-   write_reg(par, 0x0061,0x001C);  /* adjustment V10 positive polarity */
+   write_reg(par, 0x0053, 0x0033); /* circuit setting 2 */
+   write_reg(par, 0x0061, 0x001C); /* adjustment V10 positive polarity */
udelay(10);
-   write_reg(par, 0x0062,0x002C);  /* adjustment V9 negative polarity */
-   write_reg(par, 0x0063,0x0022);  /* adjustment V34 positive polarity */
+   write_reg(par, 0x0062, 0x002C); /* adjustment V9 negative polarity */
+   write_reg(par, 0x0063, 0x0022); /* adjustment V34 positive polarity */
udelay(10);
-   write_reg(par, 0x0064,0x0027);  /* adjustment V31 negative polarity */
+   write_reg(par, 0x0064, 0x0027); /* adjustment V31 negative polarity */
udelay(10);
-   write_reg(par, 0x0065,0x0014);  /* adjustment V61 negative polarity */
+   write_reg(par, 0x0065, 0x0014); /* adjustment V61 negative polarity */
udelay(10);
-   write_reg(par, 0x0066,0x0010);  /* adjustment V61 negative polarity */
-   
+   write_reg(par, 0x0066, 0x0010); /* adjustment V61 negative polarity */
+
/* Basical clock for 1 line (BASECOUNT[7:0]) number specified */
-   write_reg(par, 0x002E,0x002D);
-   
+   write_reg(par, 0x002E, 0x002D);
+
/* Power supply setting */
-   write_reg(par, 0x0019,0x);  /* DC/DC output setting */
+   write_reg(par, 0x0019, 0x); /* DC/DC output setting */
udelay(200);
-   write_reg(par, 0x001A,0x1000);  /* DC/DC frequency setting */
-   write_reg(par, 0x001B,0x0023);  /* DC/DC rising setting */
-   write_reg(par, 0x001C,0x0C01);  /* Regulator voltage setting */
-   write_reg(par, 0x001D,0x);  /* Regulator current setting */
-   write_reg(par, 0x001E,0x0009);  /* VCOM output setting */
-   write_reg(par, 0x001F,0x0035);  /* VCOM amplitude setting */
-   write_reg(par, 0x0020,0x0015);  /* VCOMM cencter setting */
-   write_reg(par, 0x0018,0x1E7B);  /* DC/DC operation setting */
+   write_reg(par, 0x001A, 0x1000); /* DC/DC frequency setting */
+   write_reg(par, 0x001B, 0x0023); /* DC/DC rising setting */
+   write_reg(par, 0x001C, 0x0C01); /* Regulator voltage setting */
+   write_reg(par, 0x001D, 0x); /* Regulator current setting */
+   write_reg(par, 0x001E, 0x0009); /* VCOM output setting */
+   write_reg(par, 0x001F, 0x0035); /* VCOM amplitude setting */
+   write_reg(par, 0x0020, 0x0015); /* VCOMM cencter setting */
+   write_reg(par, 0x0018, 0x1E7B); /* DC/DC operation setting */
 
/* windows setting */
-   write_reg(par, 0x0008,0x);  /* Minimum X address */
-   write_reg(par, 0x0009,0x00EF);  /* Maximum X address */
-   write_reg(par, 0x000a,0x);  /* Minimum Y address */
-   write_reg(par, 0x000b,0x013F);  /* Maximum Y address */
+   write_reg(par, 0x0008, 0x); /* Minimum X address */
+   write_reg(par, 0x0009, 0x00EF); /* Maximum X address */
+   write_reg(par, 0x000a, 0x); /* Minimum Y address */
+   write_reg(par, 0x000b, 0x013F); /* Maximum Y address */
 
/* LCD display area setting */
-   write_reg(par, 0x0029,0x);  /* [LCDSIZE]  X MIN. size set */
-   wri

[PATCH] staging: rtl8723au: rtl8723a_hal_init.c: remove unnecessary braces

2015-02-22 Thread Daniele Alessandrelli
Fix all checkpatch "braces {} are not necessary" warnings for
rtl8723au/hal/rtl8723a_hal_init.c

Signed-off-by: Daniele Alessandrelli 
---
 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c | 40 ---
 1 file changed, 14 insertions(+), 26 deletions(-)

diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c 
b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
index a5eadd4..e88d851 100644
--- a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
+++ b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
@@ -424,9 +424,8 @@ hal_ReadEFuse_WiFi(struct rtw_adapter *padapter,
offset = GET_HDR_OFFSET_2_0(efuseHeader);
 
ReadEFuseByte23a(padapter, eFuse_Addr++, &efuseExtHdr);
-   if (ALL_WORDS_DISABLED(efuseExtHdr)) {
+   if (ALL_WORDS_DISABLED(efuseExtHdr))
continue;
-   }
 
offset |= ((efuseExtHdr & 0xF0) >> 1);
wden = (efuseExtHdr & 0x0F);
@@ -524,9 +523,8 @@ hal_ReadEFuse_BT(struct rtw_adapter *padapter,
 
ReadEFuseByte23a(padapter, eFuse_Addr++,
  &efuseExtHdr);
-   if (ALL_WORDS_DISABLED(efuseExtHdr)) {
+   if (ALL_WORDS_DISABLED(efuseExtHdr))
continue;
-   }
 
offset |= ((efuseExtHdr & 0xF0) >> 1);
wden = (efuseExtHdr & 0x0F);
@@ -630,9 +628,8 @@ u16 rtl8723a_EfuseGetCurrentSize_WiFi(struct rtw_adapter 
*padapter)
hoffset = GET_HDR_OFFSET_2_0(efuse_data);
efuse_addr++;
efuse_OneByteRead23a(padapter, efuse_addr, &efuse_data);
-   if (ALL_WORDS_DISABLED(efuse_data)) {
+   if (ALL_WORDS_DISABLED(efuse_data))
continue;
-   }
 
hoffset |= ((efuse_data & 0xF0) >> 1);
hworden = efuse_data & 0x0F;
@@ -721,9 +718,8 @@ u16 rtl8723a_EfuseGetCurrentSize_BT(struct rtw_adapter 
*padapter)
}
 
/*  Check if we need to check next bank efuse */
-   if (efuse_addr < retU2) {
+   if (efuse_addr < retU2)
break;  /*  don't need to check next bank. */
-   }
}
 
retU2 = ((bank - 1) * EFUSE_BT_REAL_BANK_CONTENT_LEN) + efuse_addr;
@@ -1149,9 +1145,8 @@ static int _LLTWrite(struct rtw_adapter *padapter, u32 
address, u32 data)
/* polling */
do {
value = rtl8723au_read32(padapter, LLTReg);
-   if (_LLT_NO_ACTIVE == _LLT_OP_VALUE(value)) {
+   if (_LLT_NO_ACTIVE == _LLT_OP_VALUE(value))
break;
-   }
 
if (count > POLLING_LLT_THRESHOLD) {
RT_TRACE(_module_hal_init_c_, _drv_err_,
@@ -1174,16 +1169,14 @@ int InitLLTTable23a(struct rtw_adapter *padapter, u32 
boundary)
 
for (i = 0; i < (txpktbuf_bndy - 1); i++) {
status = _LLTWrite(padapter, i, i + 1);
-   if (status != _SUCCESS) {
+   if (status != _SUCCESS)
return status;
-   }
}
 
/*  end of list */
status = _LLTWrite(padapter, (txpktbuf_bndy - 1), 0xFF);
-   if (status != _SUCCESS) {
+   if (status != _SUCCESS)
return status;
-   }
 
/*  Make the other pages as ring buffer */
/*  This ring buffer is used as beacon buffer if we config this
@@ -1191,16 +1184,14 @@ int InitLLTTable23a(struct rtw_adapter *padapter, u32 
boundary)
/*  Otherwise used as local loopback buffer. */
for (i = txpktbuf_bndy; i < Last_Entry_Of_TxPktBuf; i++) {
status = _LLTWrite(padapter, i, (i + 1));
-   if (_SUCCESS != status) {
+   if (_SUCCESS != status)
return status;
-   }
}
 
/*  Let last entry point to the start entry of ring buffer */
status = _LLTWrite(padapter, Last_Entry_Of_TxPktBuf, txpktbuf_bndy);
-   if (status != _SUCCESS) {
+   if (status != _SUCCESS)
return status;
-   }
 
return status;
 }
@@ -1435,9 +1426,9 @@ static void _DisableAnalog(struct rtw_adapter *padapter, 
bool bWithoutHWSM)
 /*  HW Auto state machine */
 int CardDisableHWSM(struct rtw_adapter *padapter, u8 resetMCU)
 {
-   if (padapter->bSurpriseRemoved) {
+   if (padapter->bSurpriseRemoved)
return _SUCCESS;
-   }
+
/*  RF Off Sequence  */
_DisableRFAFEAndResetBB8192C(padapter);
 
@@ -1459,9 +1450,8 @@ int CardDisableHWSM(struct rtw_adapter *padapter, u8 
resetMCU)
 /*  without HW

[PATCH] Staging: fbtft: fix whitespace errors

2015-02-22 Thread Matteo Semenzato
From: Matteo Semenzato 

This patch fixes the following errors:
ERROR: space required after that ','
ERROR: trailing whitespace

Signed-off-by Matteo Semenzato 
---
 drivers/staging/fbtft/fb_st7735r.c | 18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/fbtft/fb_st7735r.c 
b/drivers/staging/fbtft/fb_st7735r.c
index b63aa38..70293d8 100644
--- a/drivers/staging/fbtft/fb_st7735r.c
+++ b/drivers/staging/fbtft/fb_st7735r.c
@@ -31,20 +31,20 @@
 
 static int default_init_sequence[] = {
/* SWRESET - Software reset */
-   -1, 0x01,
+   -1, 0x01,
-2, 150,   /* delay */
 
/* SLPOUT - Sleep out & booster on */
-   -1, 0x11,  
+   -1, 0x11,
-2, 500,   /* delay */
 
/* FRMCTR1 - frame rate control: normal mode
 frame rate = fosc / (1 x 2 + 40) * (LINE + 2C + 2D) */
-   -1, 0xB1, 0x01, 0x2C, 0x2D, 
+   -1, 0xB1, 0x01, 0x2C, 0x2D,
 
/* FRMCTR2 - frame rate control: idle mode
 frame rate = fosc / (1 x 2 + 40) * (LINE + 2C + 2D) */
-   -1, 0xB2, 0x01, 0x2C, 0x2D, 
+   -1, 0xB2, 0x01, 0x2C, 0x2D,
 
/* FRMCTR3 - frame rate control - partial mode
 dot inversion mode, line inversion mode */
@@ -68,7 +68,7 @@ static int default_init_sequence[] = {
 
/* PWCTR4 - Power Control
 BCLK/2, Opamp current small & Medium low */
-   -1, 0xC3,0x8A,0x2A,
+   -1, 0xC3, 0x8A, 0x2A,
 
/* PWCTR5 - Power Control */
-1, 0xC4, 0x8A, 0xEE,
@@ -91,7 +91,7 @@ static int default_init_sequence[] = {
-2, 10,   /* delay */
 
/* end marker */
-   -3  
+   -3
 };
 
 static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
@@ -148,21 +148,21 @@ static int set_var(struct fbtft_par *par)
 #define CURVE(num, idx)  curves[num*par->gamma.num_values + idx]
 static int set_gamma(struct fbtft_par *par, unsigned long *curves)
 {
-   int i,j;
+   int i, j;
 
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
 
/* apply mask */
for (i = 0; i < par->gamma.num_curves; i++)
for (j = 0; j < par->gamma.num_values; j++)
-   CURVE(i,j) &= 0b11;
+   CURVE(i, j) &= 0b11;
 
for (i = 0; i < par->gamma.num_curves; i++)
write_reg(par, 0xE0 + i,
CURVE(i, 0), CURVE(i, 1), CURVE(i, 2), CURVE(i, 3),
CURVE(i, 4), CURVE(i, 5), CURVE(i, 6), CURVE(i, 7),
CURVE(i, 8), CURVE(i, 9), CURVE(i, 10), CURVE(i, 11),
-   CURVE(i, 12), CURVE(i, 13), CURVE(i, 14), CURVE(i,15));
+   CURVE(i, 12), CURVE(i, 13), CURVE(i, 14), CURVE(i, 15));
 
return 0;
 }
-- 
2.3.0

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 1/2 fix for 3.20] vt6655: RFbSetPower fix missing rate RATE_12M

2015-02-22 Thread Malcolm Priestley
When the driver sets this rate a power of zero value is set causing
data flow stoppage until another rate is tried.

Signed-off-by: Malcolm Priestley 
Cc: 
---
 drivers/staging/vt6655/rf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c
index 941b2ad..7626f63 100644
--- a/drivers/staging/vt6655/rf.c
+++ b/drivers/staging/vt6655/rf.c
@@ -794,6 +794,7 @@ bool RFbSetPower(
break;
case RATE_6M:
case RATE_9M:
+   case RATE_12M:
case RATE_18M:
byPwr = priv->abyOFDMPwrTbl[uCH];
if (priv->byRFType == RF_UW2452)
-- 
2.1.0

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 2/2 fix for 3.20] vt6655: Fix late setting of byRFType.

2015-02-22 Thread Malcolm Priestley
byRFType is not set prior to registration of mac80211 causing
unpredictable operation after channel scans.

With byRFType unset all channels are enabled this causes tx power
to be set to values not present its eeprom.

Move setting of this variable to vt6655_probe.

byRFType must have a mask set. byRevId not used by driver and
is removed.

Signed-off-by: Malcolm Priestley 
Cc:  # v3.19+
---
 drivers/staging/vt6655/device_main.c | 16 ++--
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/drivers/staging/vt6655/device_main.c 
b/drivers/staging/vt6655/device_main.c
index f5c5872..03b2a90 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -330,16 +330,6 @@ static void device_init_registers(struct vnt_private 
*pDevice)
/* zonetype initial */
pDevice->byOriginalZonetype = pDevice->abyEEPROM[EEP_OFS_ZONETYPE];
 
-   /* Get RFType */
-   pDevice->byRFType = SROMbyReadEmbedded(pDevice->PortOffset, 
EEP_OFS_RFTYPE);
-
-   /* force change RevID for VT3253 emu */
-   if ((pDevice->byRFType & RF_EMU) != 0)
-   pDevice->byRevId = 0x80;
-
-   pDevice->byRFType &= RF_MASK;
-   pr_debug("pDevice->byRFType = %x\n", pDevice->byRFType);
-
if (!pDevice->bZoneRegExist)
pDevice->byZoneType = pDevice->abyEEPROM[EEP_OFS_ZONETYPE];
 
@@ -1780,6 +1770,12 @@ vt6655_probe(struct pci_dev *pcid, const struct 
pci_device_id *ent)
MACvInitialize(priv->PortOffset);
MACvReadEtherAddress(priv->PortOffset, priv->abyCurrentNetAddr);
 
+   /* Get RFType */
+   priv->byRFType = SROMbyReadEmbedded(priv->PortOffset, EEP_OFS_RFTYPE);
+   priv->byRFType &= RF_MASK;
+
+   dev_dbg(&pcid->dev, "RF Type = %x\n", priv->byRFType);
+
device_get_options(priv);
device_set_options(priv);
/* Mask out the options cannot be set to the chip */
-- 
2.1.0

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH] staging: rtl8723au: rtl8723a_hal_init.c: remove unnecessary braces

2015-02-22 Thread Larry Finger

On 02/22/2015 01:28 PM, Daniele Alessandrelli wrote:

Fix all checkpatch "braces {} are not necessary" warnings for
rtl8723au/hal/rtl8723a_hal_init.c

Signed-off-by: Daniele Alessandrelli 


Acked-by: Larry Finger 

Thanks,

Larry


---
  drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c | 40 ---
  1 file changed, 14 insertions(+), 26 deletions(-)

diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c 
b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
index a5eadd4..e88d851 100644
--- a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
+++ b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
@@ -424,9 +424,8 @@ hal_ReadEFuse_WiFi(struct rtw_adapter *padapter,
offset = GET_HDR_OFFSET_2_0(efuseHeader);

ReadEFuseByte23a(padapter, eFuse_Addr++, &efuseExtHdr);
-   if (ALL_WORDS_DISABLED(efuseExtHdr)) {
+   if (ALL_WORDS_DISABLED(efuseExtHdr))
continue;
-   }

offset |= ((efuseExtHdr & 0xF0) >> 1);
wden = (efuseExtHdr & 0x0F);
@@ -524,9 +523,8 @@ hal_ReadEFuse_BT(struct rtw_adapter *padapter,

ReadEFuseByte23a(padapter, eFuse_Addr++,
  &efuseExtHdr);
-   if (ALL_WORDS_DISABLED(efuseExtHdr)) {
+   if (ALL_WORDS_DISABLED(efuseExtHdr))
continue;
-   }

offset |= ((efuseExtHdr & 0xF0) >> 1);
wden = (efuseExtHdr & 0x0F);
@@ -630,9 +628,8 @@ u16 rtl8723a_EfuseGetCurrentSize_WiFi(struct rtw_adapter 
*padapter)
hoffset = GET_HDR_OFFSET_2_0(efuse_data);
efuse_addr++;
efuse_OneByteRead23a(padapter, efuse_addr, &efuse_data);
-   if (ALL_WORDS_DISABLED(efuse_data)) {
+   if (ALL_WORDS_DISABLED(efuse_data))
continue;
-   }

hoffset |= ((efuse_data & 0xF0) >> 1);
hworden = efuse_data & 0x0F;
@@ -721,9 +718,8 @@ u16 rtl8723a_EfuseGetCurrentSize_BT(struct rtw_adapter 
*padapter)
}

/*  Check if we need to check next bank efuse */
-   if (efuse_addr < retU2) {
+   if (efuse_addr < retU2)
break;  /*  don't need to check next bank. */
-   }
}

retU2 = ((bank - 1) * EFUSE_BT_REAL_BANK_CONTENT_LEN) + efuse_addr;
@@ -1149,9 +1145,8 @@ static int _LLTWrite(struct rtw_adapter *padapter, u32 
address, u32 data)
/* polling */
do {
value = rtl8723au_read32(padapter, LLTReg);
-   if (_LLT_NO_ACTIVE == _LLT_OP_VALUE(value)) {
+   if (_LLT_NO_ACTIVE == _LLT_OP_VALUE(value))
break;
-   }

if (count > POLLING_LLT_THRESHOLD) {
RT_TRACE(_module_hal_init_c_, _drv_err_,
@@ -1174,16 +1169,14 @@ int InitLLTTable23a(struct rtw_adapter *padapter, u32 
boundary)

for (i = 0; i < (txpktbuf_bndy - 1); i++) {
status = _LLTWrite(padapter, i, i + 1);
-   if (status != _SUCCESS) {
+   if (status != _SUCCESS)
return status;
-   }
}

/*  end of list */
status = _LLTWrite(padapter, (txpktbuf_bndy - 1), 0xFF);
-   if (status != _SUCCESS) {
+   if (status != _SUCCESS)
return status;
-   }

/*  Make the other pages as ring buffer */
/*  This ring buffer is used as beacon buffer if we config this
@@ -1191,16 +1184,14 @@ int InitLLTTable23a(struct rtw_adapter *padapter, u32 
boundary)
/*  Otherwise used as local loopback buffer. */
for (i = txpktbuf_bndy; i < Last_Entry_Of_TxPktBuf; i++) {
status = _LLTWrite(padapter, i, (i + 1));
-   if (_SUCCESS != status) {
+   if (_SUCCESS != status)
return status;
-   }
}

/*  Let last entry point to the start entry of ring buffer */
status = _LLTWrite(padapter, Last_Entry_Of_TxPktBuf, txpktbuf_bndy);
-   if (status != _SUCCESS) {
+   if (status != _SUCCESS)
return status;
-   }

return status;
  }
@@ -1435,9 +1426,9 @@ static void _DisableAnalog(struct rtw_adapter *padapter, 
bool bWithoutHWSM)
  /*  HW Auto state machine */
  int CardDisableHWSM(struct rtw_adapter *padapter, u8 resetMCU)
  {
-   if (padapter->bSurpriseRemoved) {
+   if (padapter->bSurpriseRemoved)
return _SUCCESS;
-   }
+
/*  RF Off Sequence  */
_DisableRFAFEAndResetBB8192C(padapter);

@@ -1459,9

[PATCH] staging: dgnc: use min_t instead of min

2015-02-22 Thread Salah Triki
This fixes the following checkpatch.pl warnings:
WARNING: min() should probably be min_t()
---
 drivers/staging/dgnc/dgnc_neo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c
index c9a8a98..1268aa9 100644
--- a/drivers/staging/dgnc/dgnc_neo.c
+++ b/drivers/staging/dgnc/dgnc_neo.c
@@ -1203,7 +1203,7 @@ static void neo_copy_data_from_uart_to_queue(struct 
channel_t *ch)
 * IBM pSeries platform.
 * 15 bytes max appears to be the magic number.
 */
-   n = min((uint) n, (uint) 12);
+   n = min_t(uint, n, 12);
 
/*
 * Since we are grabbing the linestatus register, which
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re:Reply

2015-02-22 Thread Regina Camp
Hallo,
Ich hoffe, dass Sie meine Nachricht erhalten vor 4 Monaten, wenn Sie tun, warum 
Sie nicht erlaubt haben, Ihr Konto gutgeschrieben werden.
Ich lie? Ihren Fonds vor 4 Monaten, bevor ich im Mutterschaftsurlaub, zur?ck, 
sah ich das Geld nicht ausbezahlt wurden Ich wei? wirklich nicht, warum Sie 
weigerte sich zu zahlen.
Bitte erneut senden Sie die folgenden Informationen, damit ich wieder zu 
?berpr?fen, warum Sie nicht gutgeschrieben wurden.
1) Ihr vollst?ndiger Name
2) Ihre Adresse
3) Ihre Telefonnummer
4) Ihr Land
5) Die Art der Zahlung
Ich warte auf Ihre dringende Nachricht.
Mit freundlichen Gr??en,
Regina Camp

Hello,
I hope you received my message 4 months ago if you do why you haven’t allowed 
your account to be credited.
I released your fund 4 months ago before I went on maternity leave, coming 
back, I saw the money has not been paid out I really don’t know why you refused 
to be paid.
Please re-submit the information below to enable me re-check why you have not 
been credited.
1)  Your full name
2)  Your Address
3)  Your phone number
4)  Your country 
5)  The mode of Payment 
I wait for your urgent message.
Yours sincerely,
Regina Camp
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH] Staging: fbtft: fix whitespace errors

2015-02-22 Thread Sudip Mukherjee
On Sun, Feb 22, 2015 at 08:38:50PM +0100, Matteo Semenzato wrote:
> From: Matteo Semenzato 
> 
> This patch fixes the following errors:
> ERROR: space required after that ','
> ERROR: trailing whitespace
> 
> Signed-off-by Matteo Semenzato 

checkpatch complains - ERROR: Missing Signed-off-by: line(s)

regards
sudip

> ---
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH] Staging: fbtft: fix whitespace errors

2015-02-22 Thread Matteo Semenzato
From: Matteo Semenzato 

This patch fixes the following errors:
ERROR: space required after that ','
ERROR: trailing whitespace

Signed-off-by: Matteo Semenzato 
---
 drivers/staging/fbtft/fb_st7735r.c | 18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/fbtft/fb_st7735r.c 
b/drivers/staging/fbtft/fb_st7735r.c
index b63aa38..70293d8 100644
--- a/drivers/staging/fbtft/fb_st7735r.c
+++ b/drivers/staging/fbtft/fb_st7735r.c
@@ -31,20 +31,20 @@
 
 static int default_init_sequence[] = {
/* SWRESET - Software reset */
-   -1, 0x01,
+   -1, 0x01,
-2, 150,   /* delay */
 
/* SLPOUT - Sleep out & booster on */
-   -1, 0x11,  
+   -1, 0x11,
-2, 500,   /* delay */
 
/* FRMCTR1 - frame rate control: normal mode
 frame rate = fosc / (1 x 2 + 40) * (LINE + 2C + 2D) */
-   -1, 0xB1, 0x01, 0x2C, 0x2D, 
+   -1, 0xB1, 0x01, 0x2C, 0x2D,
 
/* FRMCTR2 - frame rate control: idle mode
 frame rate = fosc / (1 x 2 + 40) * (LINE + 2C + 2D) */
-   -1, 0xB2, 0x01, 0x2C, 0x2D, 
+   -1, 0xB2, 0x01, 0x2C, 0x2D,
 
/* FRMCTR3 - frame rate control - partial mode
 dot inversion mode, line inversion mode */
@@ -68,7 +68,7 @@ static int default_init_sequence[] = {
 
/* PWCTR4 - Power Control
 BCLK/2, Opamp current small & Medium low */
-   -1, 0xC3,0x8A,0x2A,
+   -1, 0xC3, 0x8A, 0x2A,
 
/* PWCTR5 - Power Control */
-1, 0xC4, 0x8A, 0xEE,
@@ -91,7 +91,7 @@ static int default_init_sequence[] = {
-2, 10,   /* delay */
 
/* end marker */
-   -3  
+   -3
 };
 
 static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
@@ -148,21 +148,21 @@ static int set_var(struct fbtft_par *par)
 #define CURVE(num, idx)  curves[num*par->gamma.num_values + idx]
 static int set_gamma(struct fbtft_par *par, unsigned long *curves)
 {
-   int i,j;
+   int i, j;
 
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
 
/* apply mask */
for (i = 0; i < par->gamma.num_curves; i++)
for (j = 0; j < par->gamma.num_values; j++)
-   CURVE(i,j) &= 0b11;
+   CURVE(i, j) &= 0b11;
 
for (i = 0; i < par->gamma.num_curves; i++)
write_reg(par, 0xE0 + i,
CURVE(i, 0), CURVE(i, 1), CURVE(i, 2), CURVE(i, 3),
CURVE(i, 4), CURVE(i, 5), CURVE(i, 6), CURVE(i, 7),
CURVE(i, 8), CURVE(i, 9), CURVE(i, 10), CURVE(i, 11),
-   CURVE(i, 12), CURVE(i, 13), CURVE(i, 14), CURVE(i,15));
+   CURVE(i, 12), CURVE(i, 13), CURVE(i, 14), CURVE(i, 15));
 
return 0;
 }
-- 
2.3.0

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel