mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
To: gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	liodot@gmail.com, charrer@alacritech.com
Subject: [PATCH 6/6] staging: slicoss: avoid CamelCases slicoss.c
Date: Fri, 18 Nov 2016 18:58:10 +0100	[thread overview]
Message-ID: <1479491890-10380-7-git-send-email-sergio.paracuellos@gmail.com> (raw)
In-Reply-To: <1479491890-10380-1-git-send-email-sergio.paracuellos@gmail.com>

Replace CamelCases to comply with the standard kernel coding style.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/slicoss/slicoss.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c
index e43a339..b2f8ad3 100644
--- a/drivers/staging/slicoss/slicoss.c
+++ b/drivers/staging/slicoss/slicoss.c
@@ -629,15 +629,15 @@ static void slic_mac_config(struct adapter *adapter)
 static void slic_config_set(struct adapter *adapter, bool linkchange)
 {
 	u32 value;
-	u32 RcrReset;
+	u32 rcr_reset;
 
 	if (linkchange) {
 		/* Setup MAC */
 		slic_mac_config(adapter);
-		RcrReset = GRCR_RESET;
+		rcr_reset = GRCR_RESET;
 	} else {
 		slic_mac_address_config(adapter);
-		RcrReset = 0;
+		rcr_reset = 0;
 	}
 
 	if (adapter->linkduplex == LINK_FULLD) {
@@ -649,7 +649,7 @@ static void slic_config_set(struct adapter *adapter, bool linkchange)
 		slic_write32(adapter, SLIC_REG_WXCFG, value);
 
 		/* Setup rcvcfg last */
-		value = (RcrReset |	/* Reset, if linkchange */
+		value = (rcr_reset |	/* Reset, if linkchange */
 			 GRCR_CTLEN |	/* Enable CTL frames    */
 			 GRCR_ADDRAEN |	/* Address A enable     */
 			 GRCR_RCVBAD |	/* Rcv bad frames       */
@@ -662,7 +662,7 @@ static void slic_config_set(struct adapter *adapter, bool linkchange)
 		slic_write32(adapter, SLIC_REG_WXCFG, value);
 
 		/* Setup rcvcfg last */
-		value = (RcrReset |	/* Reset, if linkchange */
+		value = (rcr_reset |	/* Reset, if linkchange */
 			 GRCR_ADDRAEN |	/* Address A enable     */
 			 GRCR_RCVBAD |	/* Rcv bad frames       */
 			 (GRCR_HASHSIZE << GRCR_HASHSIZE_SHIFT));
@@ -2585,7 +2585,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
 	struct slic_shmemory *sm = &adapter->shmem;
 	struct slic_shmem_data *sm_data = sm->shmem_data;
 	struct slic_eeprom *peeprom;
-	struct oslic_eeprom *pOeeprom;
+	struct oslic_eeprom *poeeprom;
 	dma_addr_t phys_config;
 	u32 phys_configh;
 	u32 phys_configl;
@@ -2681,14 +2681,14 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
 		/* Oasis card */
 		case SLIC_2GB_DEVICE_ID:
 			/* extract EEPROM data and pointers to EEPROM data */
-			pOeeprom = (struct oslic_eeprom *)peeprom;
-			eecodesize = pOeeprom->eecode_size;
-			dramsize = pOeeprom->dram_size;
-			pmac = pOeeprom->mac_info;
-			fruformat = pOeeprom->fru_format;
-			patkfru = &pOeeprom->atk_fru;
-			oemfruformat = pOeeprom->oem_fru_format;
-			poemfru = &pOeeprom->oem_fru;
+			poeeprom = (struct oslic_eeprom *)peeprom;
+			eecodesize = poeeprom->eecode_size;
+			dramsize = poeeprom->dram_size;
+			pmac = poeeprom->mac_info;
+			fruformat = poeeprom->fru_format;
+			patkfru = &poeeprom->atk_fru;
+			oemfruformat = poeeprom->oem_fru_format;
+			poemfru = &poeeprom->oem_fru;
 			macaddrs = 2;
 			/*
 			 * Minor kludge for Oasis card
-- 
1.9.1

      parent reply	other threads:[~2016-11-18 17:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-18 17:58 [PATCH 0/6] staging: slicoss: fix some style issues Sergio Paracuellos
2016-11-18 17:58 ` [PATCH 1/6] staging: slicoss: avoid CamelCases in slic.h Sergio Paracuellos
2016-11-18 17:58 ` [PATCH 2/6] staging: slicoss: fix parenthesis alignment in slicoss.c Sergio Paracuellos
2016-11-18 17:58 ` [PATCH 3/6] staging: slicoss: logical continuations should be on the previous line Sergio Paracuellos
2016-11-18 17:58 ` [PATCH 4/6] staging: slicoss: braces should be used on all arms of this statement Sergio Paracuellos
2016-11-18 17:58 ` [PATCH 5/6] staging: slicoss: avoid CamelCases in slichw.h Sergio Paracuellos
2016-11-18 17:58 ` Sergio Paracuellos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1479491890-10380-7-git-send-email-sergio.paracuellos@gmail.com \
    --to=sergio.paracuellos@gmail.com \
    --cc=charrer@alacritech.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liodot@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®