Skip to contentSkip to conversation

staging: rtl8712: avoid camelcase variable name 'bPowerOn'

PATCH In review Payal Kshirsagar 2 participants 10 messages Mar 23, 2019 1 message not in the archive Staging

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/5 staging: rtl8712: avoid camelcase variable name 'bPowerOn'

Eliminate camelcase variable names to fix the style issue – ‘avoid camelcase’

---
 drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8712/rtl8712_efuse.c +2 -2
index 00babd0..3275f7a 100644
@@ -23,11 +23,11 @@
 /* reserve 3 bytes for HW stop read */
 static int efuse_available_max_size = EFUSE_MAX_SIZE - 3 /*0x1FD*/;
 
-static void efuse_reg_ctrl(struct _adapter *padapter, u8 bPowerOn)
+static void efuse_reg_ctrl(struct _adapter *padapter, u8 power_on)
 {
 	u8 tmpu8 = 0;
 
-	if (bPowerOn) {
+	if (power_on) {
 		/* -----------------e-fuse pwr & clk reg ctrl ---------------
 		 * Enable LDOE25 Macro Block
 		 */
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/5 staging: rtl8712: avoid camelcase variable name 'bResult'

Eliminate camelcase variable names to fix the style issue – ‘avoid camelcase’

---
 drivers/staging/rtl8712/rtl8712_efuse.c | 42 ++++++++++++++++-----------------
 1 file changed, 21 insertions(+), 21 deletions(-)
drivers/staging/rtl8712/rtl8712_efuse.c +21 -21
index 3275f7a..1a6cd42 100644
@@ -65,7 +65,7 @@ void r8712_efuse_reg_uninit(struct _adapter *padapter)
 
 static u8 efuse_one_byte_read(struct _adapter *padapter, u16 addr, u8 *data)
 {
-	u8 tmpidx = 0, bResult;
+	u8 tmpidx = 0, result;
 
 	/* -----------------e-fuse reg ctrl --------------------------------- */
 	r8712_write8(padapter, EFUSE_CTRL + 1, (u8)(addr & 0xFF)); /* address */
@@ -78,17 +78,17 @@ static u8 efuse_one_byte_read(struct _adapter *padapter, u16 addr, u8 *data)
 		tmpidx++;
 	if (tmpidx < 100) {
 		*data = r8712_read8(padapter, EFUSE_CTRL);
-		bResult = true;
+		result = true;
 	} else {
 		*data = 0xff;
-		bResult = false;
+		result = false;
 	}
-	return bResult;
+	return result;
 }
 
 static u8 efuse_one_byte_write(struct _adapter *padapter, u16 addr, u8 data)
 {
-	u8 tmpidx = 0, bResult;
+	u8 tmpidx = 0, result;
 
 	/* -----------------e-fuse reg ctrl -------------------------------- */
 	r8712_write8(padapter, EFUSE_CTRL + 1, (u8)(addr & 0xFF)); /* address */
@@ -101,16 +101,16 @@ static u8 efuse_one_byte_write(struct _adapter *padapter, u16 addr, u8 data)
 	       (tmpidx < 100))
 		tmpidx++;
 	if (tmpidx < 100)
-		bResult = true;
+		result = true;
 	else
-		bResult = false;
-	return bResult;
+		result = false;
+	return result;
 }
 
 static u8 efuse_one_byte_rw(struct _adapter *padapter, u8 bRead, u16 addr,
 			    u8 *data)
 {
-	u8 tmpidx = 0, tmpv8 = 0, bResult;
+	u8 tmpidx = 0, tmpv8 = 0, result;
 
 	/* -----------------e-fuse reg ctrl --------------------------------- */
 	r8712_write8(padapter, EFUSE_CTRL + 1, (u8)(addr & 0xFF)); /* address */
@@ -124,10 +124,10 @@ static u8 efuse_one_byte_rw(struct _adapter *padapter, u8 bRead, u16 addr,
 			tmpidx++;
 		if (tmpidx < 100) {
 			*data = r8712_read8(padapter, EFUSE_CTRL);
-			bResult = true;
+			result = true;
 		} else {
 			*data = 0;
-			bResult = false;
+			result = false;
 		}
 	} else {
 		r8712_write8(padapter, EFUSE_CTRL, *data); /* data */
@@ -136,11 +136,11 @@ static u8 efuse_one_byte_rw(struct _adapter *padapter, u8 bRead, u16 addr,
 		       (tmpidx < 100))
 			tmpidx++;
 		if (tmpidx < 100)
-			bResult = true;
+			result = true;
 		else
-			bResult = false;
+			result = false;
 	}
-	return bResult;
+	return result;
 }
 
 static u8 efuse_is_empty(struct _adapter *padapter, u8 *empty)
@@ -360,7 +360,7 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset,
 	u8 efuse_data, target_word_cnts = 0;
 	int repeat_times;
 	int sub_repeat;
-	u8 bResult = true;
+	u8 result = true;
 
 	/* check if E-Fuse Clock Enable and E-Fuse Clock is 40M */
 	efuse_data = r8712_read8(padapter, EFUSE_CLK_CTRL);
@@ -382,7 +382,7 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset,
 		while (!efuse_one_byte_read(padapter, efuse_addr,
 					    &efuse_data)) {
 			if (++sub_repeat > _REPEAT_THRESHOLD_) {
-				bResult = false; /* continue to blind write */
+				result = false; /* continue to blind write */
 				break; /* continue to blind write */
 			}
 		}
@@ -400,16 +400,16 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset,
 				if (!efuse_one_byte_read(padapter,
 							 efuse_addr + i,
 							 &efuse_data))
-					bResult = false;
+					result = false;
 				else if (*(data + i) != efuse_data) /* fail */
-					bResult = false;
+					result = false;
 			}
 			break;
 		}
 		/* write header fail */
-		bResult = false;
+		result = false;
 		if (efuse_data == 0xFF)
-			return bResult; /* nothing damaged. */
+			return result; /* nothing damaged. */
 		/* call rescue procedure */
 		if (!fix_header(padapter, efuse_data, efuse_addr))
 			return false; /* rescue fail */
@@ -418,7 +418,7 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset,
 			break;
 		/* otherwise, take another risk... */
 	}
-	return bResult;
+	return result;
 }
 
 u8 r8712_efuse_access(struct _adapter *padapter, u8 bRead, u16 start_addr,
Signature · 1 line
2.7.4
#3 lore raw

PATCH 3/5 staging: rtl8712: avoid camelcase variable name 'bRead'

In reply to Payal Kshirsagar

Eliminate camelcase variable names to fix the style issue – ‘avoid camelcase’

---
 drivers/staging/rtl8712/rtl8712_efuse.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8712/rtl8712_efuse.c +8 -8
index 1a6cd42..dd007280 100644
@@ -107,7 +107,7 @@ static u8 efuse_one_byte_write(struct _adapter *padapter, u16 addr, u8 data)
 	return result;
 }
 
-static u8 efuse_one_byte_rw(struct _adapter *padapter, u8 bRead, u16 addr,
+static u8 efuse_one_byte_rw(struct _adapter *padapter, u8 read, u16 addr,
 			    u8 *data)
 {
 	u8 tmpidx = 0, tmpv8 = 0, result;
@@ -117,7 +117,7 @@ static u8 efuse_one_byte_rw(struct _adapter *padapter, u8 bRead, u16 addr,
 	tmpv8 = ((u8)((addr >> 8) & 0x03)) |
 		 (r8712_read8(padapter, EFUSE_CTRL + 2) & 0xFC);
 	r8712_write8(padapter, EFUSE_CTRL + 2, tmpv8);
-	if (bRead) {
+	if (read) {
 		r8712_write8(padapter, EFUSE_CTRL + 3,  0x72); /* read cmd */
 		while (!(0x80 & r8712_read8(padapter, EFUSE_CTRL + 3)) &&
 		       (tmpidx < 100))
@@ -421,7 +421,7 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset,
 	return result;
 }
 
-u8 r8712_efuse_access(struct _adapter *padapter, u8 bRead, u16 start_addr,
+u8 r8712_efuse_access(struct _adapter *padapter, u8 read, u16 start_addr,
 		      u16 cnts, u8 *data)
 {
 	int i;
@@ -429,10 +429,10 @@ u8 r8712_efuse_access(struct _adapter *padapter, u8 bRead, u16 start_addr,
 
 	if (start_addr > EFUSE_MAX_SIZE)
 		return false;
-	if (!bRead && ((start_addr + cnts) >
+	if (!read && ((start_addr + cnts) >
 	   efuse_available_max_size))
 		return false;
-	if (!bRead && !r8712_efuse_reg_init(padapter))
+	if (!read && !r8712_efuse_reg_init(padapter))
 		return false;
 	/* -----------------e-fuse one byte read / write ---------------------*/
 	for (i = 0; i < cnts; i++) {
@@ -440,12 +440,12 @@ u8 r8712_efuse_access(struct _adapter *padapter, u8 bRead, u16 start_addr,
 			res = false;
 			break;
 		}
-		res = efuse_one_byte_rw(padapter, bRead, start_addr + i,
+		res = efuse_one_byte_rw(padapter, read, start_addr + i,
 					data + i);
-		if (!bRead && !res)
+		if (!read && !res)
 			break;
 	}
-	if (!bRead)
+	if (!read)
 		r8712_efuse_reg_uninit(padapter);
 	return res;
 }
Signature · 1 line
2.7.4
#4 lore raw

PATCH 4/5 staging: rtl8712: avoid camelcase variable name 'bContinual'

In reply to Payal Kshirsagar

Eliminate camelcase variable names to fix the style issue – ‘avoid camelcase’

---
 drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8712/rtl8712_efuse.c +2 -2
index dd007280..34341bf 100644
@@ -208,12 +208,12 @@ static void pgpacket_copy_data(const u8 word_en, const u8 *sourdata,
 
 u16 r8712_efuse_get_current_size(struct _adapter *padapter)
 {
-	int bContinual = true;
+	int continual = true;
 	u16 efuse_addr = 0;
 	u8 hworden = 0;
 	u8 efuse_data, word_cnts = 0;
 
-	while (bContinual && efuse_one_byte_read(padapter, efuse_addr,
+	while (continual && efuse_one_byte_read(padapter, efuse_addr,
 	       &efuse_data) && (efuse_addr < efuse_available_max_size)) {
 		if (efuse_data != 0xFF) {
 			hworden =  efuse_data & 0x0F;
Signature · 1 line
2.7.4
#5 lore raw

PATCH 5/5 staging: rtl8712: Lines should not end with a parenthesis

In reply to Payal Kshirsagar

Adjust code to fix the style issue- ‘Lines should not end with a parenthesis’.

---
 drivers/staging/rtl8712/rtl8712_efuse.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/staging/rtl8712/rtl8712_efuse.c +5 -7
index 34341bf..3ff64e2 100644
@@ -300,16 +300,14 @@ static u8 fix_header(struct _adapter *padapter, u8 header, u16 header_addr)
 		for (i = 0; i < PGPKG_MAX_WORDS; i++) {
 			if (BIT(i) & word_en) {
 				if (BIT(i) & pkt.word_en) {
-					if (efuse_one_byte_read(
-							padapter, addr,
-							&value))
+					if (efuse_one_byte_read(padapter, addr,
+								&value))
 						pkt.data[i * 2] = value;
 					else
 						return false;
-					if (efuse_one_byte_read(
-							padapter,
-							addr + 1,
-							&value))
+					if (efuse_one_byte_read(padapter,
+								addr + 1,
+								&value))
 						pkt.data[i * 2 + 1] =
 							value;
 					else
Signature · 1 line
2.7.4
#6 lore raw
In reply to Payal Kshirsagar

When you make a series, it is nice to make a cover letter as well, so that one can see the scope of the changes all at once. see the tutorial if you don't know how to do this.

Quoted 13 lines · Payal Kshirsagar

Eliminate camelcase variable names to fix the style issue – ‘avoid camelcase’

---
 drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8712/rtl8712_efuse.c +0 -0
index 00babd0..3275f7a 100644

drivers/staging/rtl8712/rtl8712_efuse.c line 26

Quoted 5 lines
drivers/staging/rtl8712/rtl8712_efuse.c +1 -1
@@ -23,11 +23,11 @@
 /* reserve 3 bytes for HW stop read */
 static int efuse_available_max_size = EFUSE_MAX_SIZE - 3 /*0x1FD*/;
 
-static void efuse_reg_ctrl(struct _adapter *padapter, u8 bPowerOn)
+static void efuse_reg_ctrl(struct _adapter *padapter, u8 power_on)

It seems that bPowerOn always has a boolean value. It would be nice to add other patches to the series that declare the variables as type bool instead of u8 (or int in one case).

Actually, this particular function is only called once and only called with the argument false. The function that looks like it should call this one with the argument true currently just returns true, I don't know if this function should be specialized to the false case and then inlined into the call site, or if it is considered that the true case gives useful information about the device, even if the code is not used.

julia

Quoted 18 lines
drivers/staging/rtl8712/rtl8712_efuse.c +1 -2
 {
 	u8 tmpu8 = 0;
 
-	if (bPowerOn) {
+	if (power_on) {
 		/* -----------------e-fuse pwr & clk reg ctrl ---------------
 		 * Enable LDOE25 Macro Block
 		 */
--

2.7.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/6b2beffe41d8256284179eda6eadd8b9cf0a24fb.1553327467.git.payal.s.kshirsagar.98%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

#7 lore raw
Quoted 5 lines · Julia Lawall

When you make a series, it is nice to make a cover letter as well, so that one can see the scope of the changes all at once. see the tutorial if you don't know how to do this.

Sending.

Quoted 25 lines · Payal Kshirsagar

Review

Quoted 10 lines

Eliminate camelcase variable names to fix the style issue – ‘avoid camelcase’

---
 drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/rtl8712/rtl8712_efuse.c

drivers/staging/rtl8712/rtl8712_efuse.c line 26

Quoted 9 lines

index 00babd0..3275f7a 100644

drivers/staging/rtl8712/rtl8712_efuse.c +1 -1
@@ -23,11 +23,11 @@
 /* reserve 3 bytes for HW stop read */
 static int efuse_available_max_size = EFUSE_MAX_SIZE - 3 /*0x1FD*/;
 
-static void efuse_reg_ctrl(struct _adapter *padapter, u8 bPowerOn)
+static void efuse_reg_ctrl(struct _adapter *padapter, u8 power_on)

It seems that bPowerOn always has a boolean value. It would be nice to add other patches to the series that declare the variables as type bool instead of u8 (or int in one case).

Quoted 8 lines

Actually, this particular function is only called once and only called with the argument false. The function that looks like it should call this one with the argument true currently just returns true, I don't know if this function should be specialized to the false case and then inlined into the call site, or if it is considered that the true case gives useful information about the device, even if the code is not used.

Do you want me to do further changes?
thanks,
payal

Quoted 37 lines

julia

drivers/staging/rtl8712/rtl8712_efuse.c

Quoted 6 lines
drivers/staging/rtl8712/rtl8712_efuse.c +1 -1
 {
      u8 tmpu8 = 0;
 
-     if (bPowerOn) {
+     if (power_on) {
              /* -----------------e-fuse pwr & clk reg ctrl

---------------

Quoted 7 lines
drivers/staging/rtl8712/rtl8712_efuse.c +0 -1
               * Enable LDOE25 Macro Block
               */
--

2.7.4

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/6b2beffe41d8256284179eda6eadd8b9cf0a24fb.1553327467.git.payal.s.kshirsagar.98%40gmail.com
.

Quoted 2 lines

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected]. To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.1903230910120.2537%40hadrien
.
For more options, visit https://groups.google.com/d/optout.

#8 lore raw
Quoted 57 lines · Payal Kshirsagar

On Sat, 23 Mar 2019 at 13:43, Julia Lawall <[email protected]> wrote:
When you make a series, it is nice to make a cover letter as well, so that
one can see the scope of the changes all at once.  see the tutorial if you
don't know how to do this.

Sending.

On Sat, 23 Mar 2019, Payal Kshirsagar wrote:

> Eliminate camelcase variable names to fix the style issue – ‘avoid
> camelcase’
>
> Signed-off-by: Payal Kshirsagar <[email protected]>
> ---
>  drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) >
> diff --git a/drivers/staging/rtl8712/rtl8712_efuse.c b/drivers/staging/rtl8712/rtl8712_efuse.c
> index 00babd0..3275f7a 100644
> --- a/drivers/staging/rtl8712/rtl8712_efuse.c
> +++ b/drivers/staging/rtl8712/rtl8712_efuse.c
> @@ -23,11 +23,11 @@
>  /* reserve 3 bytes for HW stop read */
>  static int efuse_available_max_size = EFUSE_MAX_SIZE - 3 /*0x1FD*/;
>
> -static void efuse_reg_ctrl(struct _adapter *padapter, u8 bPowerOn)
> +static void efuse_reg_ctrl(struct _adapter *padapter, u8 power_on)

It seems that bPowerOn always has a boolean value.  It would be nice to
add other patches to the series that declare the variables as type bool
instead of u8 (or int in one case).

Actually, this particular function is only called once and only called
with the argument false.  The function that looks like it should call this
one with the argument true currently just returns true,  I don't know if
this function should be specialized to the false case and then inlined
into the call site, or if it is considered that the true case gives useful
information about the device, even if the code is not used.

Quoted 1 line

Do you want me to do further changes?

Please do the change from u8 to bool.

julia

Quoted 52 lines

thanks,
payal
julia

>  {
>       u8 tmpu8 = 0;
>
> -     if (bPowerOn) {
> +     if (power_on) {
>               /* -----------------e-fuse pwr & clk reg ctrl
---------------
>                * Enable LDOE25 Macro Block
>                */
> --
> 2.7.4
>
> --
> You received this message because you are subscribed to the
Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from
it, send an email to
[email protected].
> To post to this group, send email to
[email protected].
> To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/6b2beffe41d8256284179eda 6eadd8b9cf0a24fb.1553327467.git.payal.s.kshirsagar.98%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to the
Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to
[email protected].
To post to this group, send email to
[email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.19032309 10120.2537%40hadrien.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/CANTOzWFyaovbYWFXJZhwL3L ygV-As8CTbWOKR7K0eY50uj8ryg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

#9 lore raw
Quoted 61 lines · Julia Lawall
Quoted 57 lines · Payal Kshirsagar

On Sat, 23 Mar 2019 at 13:43, Julia Lawall <[email protected]> wrote:
When you make a series, it is nice to make a cover letter as well, so that
one can see the scope of the changes all at once. see the tutorial if you
don't know how to do this.

Sending.

On Sat, 23 Mar 2019, Payal Kshirsagar wrote:

> Eliminate camelcase variable names to fix the style issue – ‘avoid
> camelcase’
>
> Signed-off-by: Payal Kshirsagar <[email protected]>
> ---
> drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >
> diff --git a/drivers/staging/rtl8712/rtl8712_efuse.c b/drivers/staging/rtl8712/rtl8712_efuse.c
> index 00babd0..3275f7a 100644
> --- a/drivers/staging/rtl8712/rtl8712_efuse.c
> +++ b/drivers/staging/rtl8712/rtl8712_efuse.c
> @@ -23,11 +23,11 @@
> /* reserve 3 bytes for HW stop read */
> static int efuse_available_max_size = EFUSE_MAX_SIZE - 3 /*0x1FD*/;
>
> -static void efuse_reg_ctrl(struct _adapter *padapter, u8 bPowerOn)
> +static void efuse_reg_ctrl(struct _adapter *padapter, u8 power_on)

It seems that bPowerOn always has a boolean value. It would be nice to
add other patches to the series that declare the variables as type bool
instead of u8 (or int in one case).

Actually, this particular function is only called once and only called
with the argument false. The function that looks like it should call this
one with the argument true currently just returns true, I don't know if
this function should be specialized to the false case and then inlined
into the call site, or if it is considered that the true case gives useful
information about the device, even if the code is not used.

Quoted 6 lines
Quoted 1 line

Do you want me to do further changes?

Please do the change from u8 to bool.

Okay I will change and resend it.

Thanks,
Payal

julia

Quoted 68 lines
Quoted 18 lines

thanks,
payal

      julia

      >  {
      >       u8 tmpu8 = 0;
      >
      > -     if (bPowerOn) {
      > +     if (power_on) {
      >               /* -----------------e-fuse pwr & clk reg ctrl
      ---------------
      >                * Enable LDOE25 Macro Block
      >                */
      > --
      > 2.7.4
      >
      > --
Quoted 8 lines
      > You received this message because you are subscribed to the
      Google Groups "outreachy-kernel" group.
      > To unsubscribe from this group and stop receiving emails from
      it, send an email to
      [email protected].
      > To post to this group, send email to
      [email protected].
      > To view this discussion on the web visithttps://

groups.google.com/d/msgid/outreachy-kernel/6b2beffe41d8256284179eda

Quoted 4 lines

6eadd8b9cf0a24fb.1553327467.git.payal.s.kshirsagar.98%40gmail.com. > For more options, visit https://groups.google.com/d/optout.
>

Quoted 9 lines

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://

groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.19032309

Quoted 10 lines

10120.2537%40hadrien.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected]. To view this discussion on the web visithttps://

groups.google.com/d/msgid/outreachy-kernel/CANTOzWFyaovbYWFXJZhwL3L

Quoted 4 lines

ygV-As8CTbWOKR7K0eY50uj8ryg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected]. To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.1903230942200.2537%40hadrien
.
For more options, visit https://groups.google.com/d/optout.

#10 lore raw
Quoted 66 lines · Payal Kshirsagar
Quoted 62 lines · Julia Lawall
Quoted 3 lines · Payal Kshirsagar

On Sat, 23 Mar 2019 at 13:43, Julia Lawall <[email protected]>

Quoted 54 lines · wrote:

When you make a series, it is nice to make a cover letter as well, so that
one can see the scope of the changes all at once. see the tutorial if you
don't know how to do this.

Sending.

On Sat, 23 Mar 2019, Payal Kshirsagar wrote:

> Eliminate camelcase variable names to fix the style issue – ‘avoid
> camelcase’
>
> Signed-off-by: Payal Kshirsagar <[email protected]>
> ---
> drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >
> diff --git a/drivers/staging/rtl8712/rtl8712_efuse.c b/drivers/staging/rtl8712/rtl8712_efuse.c
> index 00babd0..3275f7a 100644
> --- a/drivers/staging/rtl8712/rtl8712_efuse.c
> +++ b/drivers/staging/rtl8712/rtl8712_efuse.c
> @@ -23,11 +23,11 @@
> /* reserve 3 bytes for HW stop read */
> static int efuse_available_max_size = EFUSE_MAX_SIZE - 3 /*0x1FD*/;
>
> -static void efuse_reg_ctrl(struct _adapter *padapter, u8 bPowerOn)
> +static void efuse_reg_ctrl(struct _adapter *padapter, u8 power_on)

It seems that bPowerOn always has a boolean value. It would be nice to
add other patches to the series that declare the variables as type bool
instead of u8 (or int in one case).

Actually, this particular function is only called once and only called
with the argument false. The function that looks like it should call this
one with the argument true currently just returns true, I don't know if
this function should be specialized to the false case and then inlined
into the call site, or if it is considered that the true case gives useful
information about the device, even if the code is not used.

Quoted 9 lines
Quoted 6 lines
Quoted 1 line

Do you want me to do further changes?

Please do the change from u8 to bool.

Okay I will change and resend it.

Thanks,
Payal

Can I send this change in new patch?, because subject will be different than this patchset.
Regards payal.

Quoted 74 lines

julia

Quoted 71 lines
Quoted 18 lines

thanks,
payal

      julia

      >  {
      >       u8 tmpu8 = 0;
      >
      > -     if (bPowerOn) {
      > +     if (power_on) {
      >               /* -----------------e-fuse pwr & clk reg ctrl
      ---------------
      >                * Enable LDOE25 Macro Block
      >                */
      > --
      > 2.7.4
      >
      > --
Quoted 8 lines
      > You received this message because you are subscribed to the
      Google Groups "outreachy-kernel" group.
      > To unsubscribe from this group and stop receiving emails from
      it, send an email to
      [email protected].
      > To post to this group, send email to
      [email protected].
      > To view this discussion on the web visithttps://

groups.google.com/d/msgid/outreachy-kernel/6b2beffe41d8256284179eda

Quoted 1 line
      6eadd8b9cf0a24fb.1553327467.git.payal.s.kshirsagar.98%40gmail.com

.

Quoted 12 lines

> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://

groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.19032309

Quoted 5 lines

10120.2537%40hadrien.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google

Groups

Quoted 2 lines

"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send

an

Quoted 3 lines

email to [email protected].
To post to this group, send email to [email protected]. To view this discussion on the web visithttps://

groups.google.com/d/msgid/outreachy-kernel/CANTOzWFyaovbYWFXJZhwL3L

Quoted 4 lines

ygV-As8CTbWOKR7K0eY50uj8ryg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected]. To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/alpine.DEB.2.21.1903230942200.2537%40hadrien
.
For more options, visit https://groups.google.com/d/optout.