Commit 0a4b6b02 authored by Manohar Vanga's avatar Manohar Vanga Committed by Greg Kroah-Hartman

staging: vme_user: rename USER_BUS_MAX to VME_USER_BUS_MAX

Signed-off-by: default avatarManohar Vanga <manohar.vanga@cern.ch>
Cc: Martyn Welch <martyn.welch@ge.com>
Reviewed-by: default avatarEmilio G. Cota <cota@braap.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a916a391
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
static DEFINE_MUTEX(vme_user_mutex); static DEFINE_MUTEX(vme_user_mutex);
static const char driver_name[] = "vme_user"; static const char driver_name[] = "vme_user";
static int bus[USER_BUS_MAX]; static int bus[VME_USER_BUS_MAX];
static unsigned int bus_num; static unsigned int bus_num;
/* Currently Documentation/devices.txt defines the following for VME: /* Currently Documentation/devices.txt defines the following for VME:
...@@ -643,10 +643,10 @@ static int __init vme_user_init(void) ...@@ -643,10 +643,10 @@ static int __init vme_user_init(void)
/* Let's start by supporting one bus, we can support more than one /* Let's start by supporting one bus, we can support more than one
* in future revisions if that ever becomes necessary. * in future revisions if that ever becomes necessary.
*/ */
if (bus_num > USER_BUS_MAX) { if (bus_num > VME_USER_BUS_MAX) {
printk(KERN_ERR "%s: Driver only able to handle %d buses\n", printk(KERN_ERR "%s: Driver only able to handle %d buses\n",
driver_name, USER_BUS_MAX); driver_name, VME_USER_BUS_MAX);
bus_num = USER_BUS_MAX; bus_num = VME_USER_BUS_MAX;
} }
/* /*
...@@ -668,7 +668,7 @@ static int __init vme_user_init(void) ...@@ -668,7 +668,7 @@ static int __init vme_user_init(void)
static int vme_user_match(struct vme_dev *vdev) static int vme_user_match(struct vme_dev *vdev)
{ {
if (vdev->num >= USER_BUS_MAX) if (vdev->num >= VME_USER_BUS_MAX)
return 0; return 0;
return 1; return 1;
} }
......
#ifndef _VME_USER_H_ #ifndef _VME_USER_H_
#define _VME_USER_H_ #define _VME_USER_H_
#define USER_BUS_MAX 1 #define VME_USER_BUS_MAX 1
/* /*
* VMEbus Master Window Configuration Structure * VMEbus Master Window Configuration Structure
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment