Skip to content
This repository
Browse code

staging: vme_user: rename USER_BUS_MAX to VME_USER_BUS_MAX

Signed-off-by: Manohar Vanga <manohar.vanga@cern.ch>
Cc: Martyn Welch <martyn.welch@ge.com>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information...
commit 0a4b6b0279d903df2d62aaf92edf360fb5312532 1 parent a916a39
authored gregkh committed
10  drivers/staging/vme/devices/vme_user.c
@@ -43,7 +43,7 @@
43 43
 static DEFINE_MUTEX(vme_user_mutex);
44 44
 static const char driver_name[] = "vme_user";
45 45
 
46  
-static int bus[USER_BUS_MAX];
  46
+static int bus[VME_USER_BUS_MAX];
47 47
 static unsigned int bus_num;
48 48
 
49 49
 /* Currently Documentation/devices.txt defines the following for VME:
@@ -643,10 +643,10 @@ static int __init vme_user_init(void)
643 643
 	/* Let's start by supporting one bus, we can support more than one
644 644
 	 * in future revisions if that ever becomes necessary.
645 645
 	 */
646  
-	if (bus_num > USER_BUS_MAX) {
  646
+	if (bus_num > VME_USER_BUS_MAX) {
647 647
 		printk(KERN_ERR "%s: Driver only able to handle %d buses\n",
648  
-			driver_name, USER_BUS_MAX);
649  
-		bus_num = USER_BUS_MAX;
  648
+			driver_name, VME_USER_BUS_MAX);
  649
+		bus_num = VME_USER_BUS_MAX;
650 650
 	}
651 651
 
652 652
 	/*
@@ -668,7 +668,7 @@ static int __init vme_user_init(void)
668 668
 
669 669
 static int vme_user_match(struct vme_dev *vdev)
670 670
 {
671  
-	if (vdev->num >= USER_BUS_MAX)
  671
+	if (vdev->num >= VME_USER_BUS_MAX)
672 672
 		return 0;
673 673
 	return 1;
674 674
 }
2  drivers/staging/vme/devices/vme_user.h
... ...
@@ -1,7 +1,7 @@
1 1
 #ifndef _VME_USER_H_
2 2
 #define _VME_USER_H_
3 3
 
4  
-#define USER_BUS_MAX                  1
  4
+#define VME_USER_BUS_MAX	1
5 5
 
6 6
 /*
7 7
  * VMEbus Master Window Configuration Structure

0 notes on commit 0a4b6b0

Please sign in to comment.
Something went wrong with that request. Please try again.