mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Egor Uleyskiy <egor.ulieiskii@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Egor Uleyskiy <egor.ulieiskii@gmail.com>,
	Manohar Vanga <manohar.vanga@gmail.com>,
	Martyn Welch <martyn@welchs.me.uk>,
	Trivial Patch Monkey <trivial@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 4/6] drivers: staging: vme: Deleted extra bracking
Date: Sun, 22 Nov 2015 11:27:55 +0200	[thread overview]
Message-ID: <1448184477-24767-4-git-send-email-egor.ulieiskii@gmail.com> (raw)
In-Reply-To: <1448184477-24767-1-git-send-email-egor.ulieiskii@gmail.com>

From: Egor Uleyskiy <egor.ulieiskii@gmail.com>

* Deleted extra bracking of VME_* constants
* Deleted extra bracking of address operator

Signed-off-by: Egor Uleyskiy <egor.ulieiskii@gmail.com>
---
 drivers/staging/vme/devices/vme_pio2_core.c | 2 +-
 drivers/staging/vme/devices/vme_pio2_gpio.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/vme/devices/vme_pio2_core.c b/drivers/staging/vme/devices/vme_pio2_core.c
index a30282a..296551f 100644
--- a/drivers/staging/vme/devices/vme_pio2_core.c
+++ b/drivers/staging/vme/devices/vme_pio2_core.c
@@ -289,7 +289,7 @@ static int pio2_probe(struct vme_dev *vdev)
 	}
 
 	retval = vme_master_set(card->window, 1, card->base, 0x10000, VME_A24,
-				(VME_SCT | VME_USER | VME_DATA), VME_D16);
+				VME_SCT | VME_USER | VME_DATA, VME_D16);
 	if (retval) {
 		dev_err(&card->vdev->dev,
 			"Unable to configure VME master resource\n");
diff --git a/drivers/staging/vme/devices/vme_pio2_gpio.c b/drivers/staging/vme/devices/vme_pio2_gpio.c
index e09f6bb..65fdb56 100644
--- a/drivers/staging/vme/devices/vme_pio2_gpio.c
+++ b/drivers/staging/vme/devices/vme_pio2_gpio.c
@@ -205,7 +205,7 @@ int pio2_gpio_init(struct pio2_card *card)
 	card->gc.set = pio2_gpio_set;
 
 	/* This function adds a memory mapped GPIO chip */
-	retval = gpiochip_add(&(card->gc));
+	retval = gpiochip_add(&card->gc);
 	if (retval) {
 		dev_err(&card->vdev->dev, "Unable to register GPIO\n");
 		kfree(card->gc.label);
@@ -218,7 +218,7 @@ void pio2_gpio_exit(struct pio2_card *card)
 {
 	const char *label = card->gc.label;
 
-	gpiochip_remove(&(card->gc));
+	gpiochip_remove(&card->gc);
 	kfree(label);
 }
 
-- 
2.5.0


  parent reply	other threads:[~2015-11-22  9:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-22  9:27 [PATCH 1/6] drivers: staging: vme: Fixed indention Egor Uleyskiy
2015-11-22  9:27 ` [PATCH 2/6] drivers: staging: vme: Deleted extra empty lines Egor Uleyskiy
2015-11-22  9:27 ` [PATCH 3/6] drivers: staging: vme: Fixed the using of sizeof Egor Uleyskiy
2015-11-22  9:27 ` Egor Uleyskiy [this message]
2015-11-22  9:27 ` [PATCH 5/6] drivers: staging: vme: Fixed checking NULL and 0 code style Egor Uleyskiy
2015-11-22  9:27 ` [PATCH 6/6] drivers: staging: vme: Deleted casting to (void *) Egor Uleyskiy

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=1448184477-24767-4-git-send-email-egor.ulieiskii@gmail.com \
    --to=egor.ulieiskii@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manohar.vanga@gmail.com \
    --cc=martyn@welchs.me.uk \
    --cc=trivial@kernel.org \
    /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®